Browse Source

ini: Fix wrning

Serj Kalichev 5 years ago
parent
commit
401087dd8e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lub/ini/ini.c

+ 1 - 1
lub/ini/ini.c

@@ -107,7 +107,7 @@ int lub_ini_parse_str(lub_ini_t *this, const char *ini)
 	for (line = strtok_r(buffer, "\n", &saveptr);
 		line; line = strtok_r(NULL, "\n", &saveptr)) {
 
-		char *str, *name, *value, *savestr, *ns = line;
+		char *str, *name, *value, *savestr = NULL, *ns = line;
 		const char *begin;
 		size_t len, offset, quoted;
 		char *rname, *rvalue;