]> git.ozlabs.org Git - ccan/blobdiff - ccan/ciniparser/ciniparser.c
tdb2: implement tdb_exists and tdb_parse_record
[ccan] / ccan / ciniparser / ciniparser.c
index 5e27a25333a0b49e72c88d0e25606ef8f4ac8e55..d28c15817e10de530ef43e05744d56106ae0fef9 100644 (file)
@@ -128,7 +128,6 @@ line_status ciniparser_line(char *input_line, char *section,
        strcpy(line, strstrip(input_line));
        len = (int) strlen(line);
 
-       sta = LINE_UNPROCESSED;
        if (len < 1) {
                /* Empty line */
                sta = LINE_EMPTY;
@@ -428,8 +427,6 @@ dictionary *ciniparser_load(const char *ininame)
                        /* Multi-line value */
                        last = len;
                        continue;
-               } else {
-                       last = 0;
                }
 
                switch (ciniparser_line(line, section, key, val)) {