1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +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;
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) {