From bcb2752125986cbbf33a9388bd6420bb2af48ef6 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 9 Apr 2019 12:49:00 +0200 Subject: [PATCH] lib: Initialize variables in parse_resolvconf_fp Signed-off-by: Volker Lendecke Reviewed-by: Stefan Metzmacher --- libcli/dns/resolvconf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) {