X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fopt%2Fopt.c;h=db7686be10eba44a08cec27c945aff7002a5b0fb;hp=5aaa000b64a1cd31fd1078c021d62c4117c47146;hb=2d6e39ce1994c9537caf9a711b69a2c61f1ec35d;hpb=74257cee33ae3033f961d5f22a0313b8cb1b18d4 diff --git a/ccan/opt/opt.c b/ccan/opt/opt.c index 5aaa000b..db7686be 100644 --- a/ccan/opt/opt.c +++ b/ccan/opt/opt.c @@ -205,7 +205,8 @@ bool opt_parse(int *argc, char *argv[], void (*errlog)(const char *fmt, ...)) void opt_free_table(void) { free(opt_table); - opt_table=0; + opt_table = NULL; + opt_count = opt_num_short = opt_num_short_arg = opt_num_long = 0; } void opt_log_stderr(const char *fmt, ...)