We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d374a57 commit e503cccCopy full SHA for e503ccc
inifile/inifile.c
@@ -25,7 +25,7 @@ static char *trimstr(char *s, char *end)
25
else
26
break;
27
}
28
- if (end == s) return NULL;
+ if (end <= s) return NULL;
29
30
t = str = (char *) malloc(end - s + 1);
31
while (s < end)
0 commit comments