mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 05:50:08 +01:00
keyfile: don't g_return_if_fail() on bad user input
return-if-fail is only for programmer errors
This commit is contained in:
parent
8d9ddbee17
commit
6b2579fcdf
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue