Skip to content

Commit

Permalink
cmd/flux-module: fix uninitialized use of variable
Browse files Browse the repository at this point in the history
  • Loading branch information
garlick committed Mar 2, 2017
1 parent d876526 commit afd8d07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cmd/flux-module.c
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,10 @@ int cmd_list (optparse_t *p, int argc, char **argv)
flux_rpc_t *r = NULL;
flux_t *h;
int n;
zhash_t *mods = zhash_new ();

if (!mods)
oom ();
if ((n = optparse_option_index (p)) < argc - 1) {
optparse_print_usage (p);
exit (1);
Expand All @@ -543,9 +546,6 @@ int cmd_list (optparse_t *p, int argc, char **argv)

printf ("%-20s %-7s %-7s %4s %c %s\n",
"Module", "Size", "Digest", "Idle", 'S', "Nodeset");
zhash_t *mods = zhash_new ();
if (!mods)
oom ();
topic = xasprintf ("%s.lsmod", service);
if (!(r = flux_rpc_multi (h, topic, NULL, ns, 0)))
log_err_exit ("%s", topic);
Expand Down

0 comments on commit afd8d07

Please sign in to comment.