diff options
author | Dan Winship <danw@gnome.org> | 2014-04-05 09:42:00 -0400 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2014-04-17 13:00:37 -0400 |
commit | 6b2579fcdfdf90e58d56060169e2cbe1ec694a7c (patch) | |
tree | ebad24d0e2220458bc15e13562bdb2f81a7af45a /src/settings | |
parent | 8d9ddbee175eb7d832695651169606bf9826a6df (diff) | |
download | NetworkManager-6b2579fcdfdf90e58d56060169e2cbe1ec694a7c.tar.gz |
keyfile: don't g_return_if_fail() on bad user input
return-if-fail is only for programmer errors
Diffstat (limited to 'src/settings')
-rw-r--r-- | src/settings/plugins/keyfile/reader.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/settings/plugins/keyfile/reader.c b/src/settings/plugins/keyfile/reader.c index a157dc1334..03e1c344ee 100644 --- a/src/settings/plugins/keyfile/reader.c +++ b/src/settings/plugins/keyfile/reader.c @@ -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; |