X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fopt%2Fopt.c;h=db7686be10eba44a08cec27c945aff7002a5b0fb;hb=e42097b73f6cd509aa17a48487a707401a2d4bd0;hp=827109e34074f0edc33226f8157ab31bd27bd70c;hpb=e34192d580958aaffff3754a4e2bf1eccbb489f8;p=ccan diff --git a/ccan/opt/opt.c b/ccan/opt/opt.c index 827109e3..db7686be 100644 --- a/ccan/opt/opt.c +++ b/ccan/opt/opt.c @@ -1,3 +1,4 @@ +/* Licensed under GPLv3+ - see LICENSE file for details */ #include #include #include @@ -204,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, ...)