segv-- on parsing garbage ini files.

SVN revision: 74542
This commit is contained in:
Carsten Haitzler 2012-07-29 07:57:41 +00:00
parent 6f73a22a03
commit c7bf0ff14a
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ efreet_ini_parse(const char *file)
value_end++; value_end++;
/* make sure we have a key. blank values are allowed */ /* make sure we have a key. blank values are allowed */
if (key_end == 0) if (key_end <= 0)
{ {
/* invalid file... */ /* invalid file... */
// INF("Invalid file (%s) (invalid key=value pair)", file); // INF("Invalid file (%s) (invalid key=value pair)", file);