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:
parent
c0b2272a7d
commit
bcb2752125
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user