mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 00:10:07 +01:00
ifcfg-rh: use svGetValueFull() in svGetValueInt64()
Previously, it would silently accept a value set to "empty". This is however not a valid number and we should raise a warning just like for any other invalid number.
This commit is contained in:
parent
33aaa730c5
commit
c6efbeccf3
1 changed files with 1 additions and 1 deletions
|
|
@ -345,7 +345,7 @@ svGetValueInt64 (shvarFile *s, const char *key, guint base, gint64 min, gint64 m
|
|||
gint64 result;
|
||||
int errsv;
|
||||
|
||||
tmp = svGetValue (s, key, FALSE);
|
||||
tmp = svGetValueFull (s, key, FALSE);
|
||||
if (!tmp) {
|
||||
errno = 0;
|
||||
return fallback;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue