]> git.ozlabs.org Git - ccan/blobdiff - ccan/ciniparser/ciniparser.c
alloc: avoid arithmetic on void pointers.
[ccan] / ccan / ciniparser / ciniparser.c
index dceb22f55f7d10f55de10c4dcaadbf36f59ec224..d28c15817e10de530ef43e05744d56106ae0fef9 100644 (file)
@@ -33,7 +33,7 @@
  */
 
 #include <ctype.h>
-#include "ciniparser.h"
+#include <ccan/ciniparser/ciniparser.h>
 
 #define ASCIILINESZ      (1024)
 #define INI_INVALID_KEY  ((char*) NULL)
@@ -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)) {