* edje: prevent segv when no param is given to edje_convert.
authorcedric <cedric>
Mon, 23 Aug 2010 14:44:04 +0000 (14:44 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 23 Aug 2010 14:44:04 +0000 (14:44 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@51575 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/edje_convert_main.c

index b241d77..da2189c 100644 (file)
@@ -128,7 +128,7 @@ main(int argc, char **argv)
    eet_init();
 
    progname = argv[0];
-   if (argc > 2 || !strcmp(argv[1], "-h"))
+   if (argc > 2 || argc < 2 || !strcmp(argv[1], "-h"))
      {
        main_help();
        return 0;