python:tests: Store keys as bytes rather than as lists of ints
[samba.git] / libcli / dns / resolvconf.c
index 90d4e6a74b696a4cff41a09b05db6a38ff480e66..5cf8b4e7882978a9eda55f7c4acde9308c307e61 100644 (file)
@@ -30,15 +30,15 @@ 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;
 
        while (true) {
-               char *saveptr, *option, *ns;
-               char **tmp;
-               ssize_t n;
-               size_t len;
+               char *saveptr = NULL, *option = NULL, *ns = NULL;
+               char **tmp = NULL;
+               ssize_t n = 0;
 
                n = getline(&line, &len, fp);
                if (n < 0) {