]> git.draconx.ca Git - cdecl99.git/blobdiff - src/cdecl99.c
libcdecl: Make cdecl__emit_specs return value usable directly.
[cdecl99.git] / src / cdecl99.c
index eac0023731ce9838342dd286032ad876c36463b4..5ddc889f05168d279d32eb88612231a848f1a8f3 100644 (file)
@@ -79,6 +79,7 @@ static void print_usage(FILE *f)
 
 static void print_help(const struct option *lopts)
 {
+       struct lopt_help help = {0};
        const struct option *opt;
 
        print_usage(stdout);
@@ -89,8 +90,6 @@ static void print_help(const struct option *lopts)
 
        puts(_("Options:"));
        for (opt = lopts; opt->name; opt++) {
-               struct lopt_help help;
-
                if (!lopt_get_help(opt, &help))
                        continue;