1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

lib: Initialize variables in parse_resolvconf_fp

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Volker Lendecke 2019-04-09 12:49:00 +02:00 committed by Jeremy Allison
parent c0b2272a7d
commit bcb2752125

View File

@ -36,9 +36,9 @@ int parse_resolvconf_fp(
int ret = 0; int ret = 0;
while (true) { while (true) {
char *saveptr, *option, *ns; char *saveptr = NULL, *option = NULL, *ns = NULL;
char **tmp; char **tmp = NULL;
ssize_t n; ssize_t n = 0;
n = getline(&line, &len, fp); n = getline(&line, &len, fp);
if (n < 0) { if (n < 0) {