From 93921f44b47fb38cf4b6dd5e33100c57bfe8acc5 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 26 Jan 2021 14:47:14 +0100 Subject: [PATCH] parse: fix warning --- src/libmemcached/parse.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.30.2