From: Michael Wallner Date: Tue, 26 Jan 2021 13:47:14 +0000 (+0100) Subject: parse: fix warning X-Git-Tag: 1.1.0-beta3~7 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=93921f44b47fb38cf4b6dd5e33100c57bfe8acc5;p=m6w6%2Flibmemcached parse: fix warning --- diff --git a/src/libmemcached/parse.cc b/src/libmemcached/parse.cc index 5bf6fac2..d9d81db0 100644 --- a/src/libmemcached/parse.cc +++ b/src/libmemcached/parse.cc @@ -30,7 +30,7 @@ memcached_server_list_st memcached_servers_parse(const char *server_strings) { begin_ptr != end_ptr; string = (char *) strchr(begin_ptr, ',')) { char buffer[HUGE_STRING_LEN]; - char *ptr, *ptr2; + char *ptr, *ptr2 = NULL; uint32_t weight = 0; if (string) {