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