Don't try to print cmd_name before its initialised. From Amanous, Issue #48.
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Tue, 13 Apr 2010 23:16:40 +0000 (23:16 +0000)
committergraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Tue, 13 Apr 2010 23:16:40 +0000 (23:16 +0000)
git-svn-id: http://opkg.googlecode.com/svn/trunk@528 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

src/opkg-cl.c

index 448387e9f605babee3101ff4bba6db5976725192..ae63012f7f56957a8238139e61a9731802130593 100644 (file)
@@ -274,8 +274,6 @@ main(int argc, char *argv[])
 
        opts = args_parse(argc, argv);
        if (opts == argc || opts < 0) {
-               fprintf (stderr, "%s: unknown sub-command %s\n", argv[0],
-                        cmd_name);
                fprintf(stderr, "opkg must have one sub-command argument\n");
                usage();
        }