From: Mark Atwood Date: Mon, 24 Sep 2007 20:32:42 +0000 (-0700) Subject: fix bug in calling parse_opt_servers X-Git-Tag: 0.2~7^2~1 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=f2db40d14786c1eb328c5762708baef0228bd4d9;p=awesomized%2Flibmemcached fix bug in calling parse_opt_servers --- diff --git a/src/memrm.c b/src/memrm.c index 18f53a5e..005a913d 100644 --- a/src/memrm.c +++ b/src/memrm.c @@ -21,8 +21,6 @@ int main(int argc, char *argv[]) memc= memcached_init(NULL); - parse_opt_servers(memc, opt_servers); - if (opt_servers) parse_opt_servers(memc, opt_servers); diff --git a/src/memstat.c b/src/memstat.c index a01c35ba..3d30d16b 100644 --- a/src/memstat.c +++ b/src/memstat.c @@ -25,7 +25,8 @@ int main(int argc, char *argv[]) memc= memcached_init(NULL); options_parse(argc, argv); - parse_opt_servers(memc, opt_servers); + if (opt_servers) + parse_opt_servers(memc, opt_servers); memcached_deinit(memc);