mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-07 19:10:31 +01:00
shared: fix handling %NULL argument in nm_ref_string_equals_str()
Fixes: 190a8ed425 ('shared: add nm_ref_string_equals_str() helper')
This commit is contained in:
parent
30e90b0d95
commit
8b63fd8cc0
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ nm_ref_string_equals_str (NMRefString *rstr, const char *s)
|
|||
* that distinction, this function is not for you. */
|
||||
|
||||
return rstr
|
||||
? nm_streq (rstr->str, s)
|
||||
? (s && nm_streq (rstr->str, s))
|
||||
: (s == NULL);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue