keyfile: don't g_return_if_fail() on bad user input

return-if-fail is only for programmer errors
This commit is contained in:
Dan Winship
2014-04-05 09:42:00 -04:00
parent 8d9ddbee17
commit 6b2579fcdf

View File

@@ -277,7 +277,8 @@ read_field (char **current, char **error, const char *characters, const char *de
}
/* fail on empty input */
g_return_val_if_fail (**current, NULL);
if (!**current)
return NULL;
/* remember beginning of input */
start = *current;