summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ini/ini_parse.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/ini/ini_parse.c b/ini/ini_parse.c
index 60ef116..9900610 100644
--- a/ini/ini_parse.c
+++ b/ini/ini_parse.c
@@ -970,6 +970,7 @@ static int handle_kvp(struct parser_obj *po, uint32_t *action)
/* Check if we have the key */
if (*(str) == '=') {
+ TRACE_ERROR_STRING("No key", str);
po->last_error = ERR_NOKEY;
*action = PARSE_ERROR;
return EOK;
@@ -990,12 +991,6 @@ static int handle_kvp(struct parser_obj *po, uint32_t *action)
while ((len > 0) && (isspace(*(str + len)))) len--;
/* Adjust length properly */
len++;
- if (!len) {
- TRACE_ERROR_STRING("No key", str);
- po->last_error = ERR_NOKEY;
- *action = PARSE_ERROR;
- return EOK;
- }
/* Check the key length */
if(len >= MAX_KEY) {