From: Volker Lendecke Date: Tue, 9 Apr 2019 10:49:00 +0000 (+0200) Subject: lib: Initialize variables in parse_resolvconf_fp X-Git-Tag: tdb-1.4.1~482 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bcb2752125986cbbf33a9388bd6420bb2af48ef6;p=thirdparty%2Fsamba.git lib: Initialize variables in parse_resolvconf_fp Signed-off-by: Volker Lendecke Reviewed-by: Stefan Metzmacher --- diff --git a/libcli/dns/resolvconf.c b/libcli/dns/resolvconf.c index ee2eec6573b..5cf8b4e7882 100644 --- a/libcli/dns/resolvconf.c +++ b/libcli/dns/resolvconf.c @@ -36,9 +36,9 @@ int parse_resolvconf_fp( int ret = 0; while (true) { - char *saveptr, *option, *ns; - char **tmp; - ssize_t n; + char *saveptr = NULL, *option = NULL, *ns = NULL; + char **tmp = NULL; + ssize_t n = 0; n = getline(&line, &len, fp); if (n < 0) {