git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib: Initialize getline() arguments
[sfrench/samba-autobuild/.git]
/
libcli
/
dns
/
resolvconf.c
diff --git
a/libcli/dns/resolvconf.c
b/libcli/dns/resolvconf.c
index 90d4e6a74b696a4cff41a09b05db6a38ff480e66..ee2eec6573b31b317e982e4e69d9058d98dc1c42 100644
(file)
--- a/
libcli/dns/resolvconf.c
+++ b/
libcli/dns/resolvconf.c
@@
-30,6
+30,7
@@
int parse_resolvconf_fp(
size_t *pnum_nameservers)
{
char *line = NULL;
+ size_t len = 0;
char **nameservers = NULL;
size_t num_nameservers = 0;
int ret = 0;
@@
-38,7
+39,6
@@
int parse_resolvconf_fp(
char *saveptr, *option, *ns;
char **tmp;
ssize_t n;
- size_t len;
n = getline(&line, &len, fp);
if (n < 0) {