mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 12:18:13 +02:00
glib-aux: fix assertion in nm_strdup_reset_take()
Fixes: c4d981959e ('shared: add nm_utils_strdup_reset_take() helper')
This commit is contained in:
parent
ea7ce48c00
commit
b450221195
1 changed files with 1 additions and 1 deletions
|
|
@ -2977,7 +2977,7 @@ nm_strdup_reset_take(char **dst, char *src)
|
|||
char *old;
|
||||
|
||||
nm_assert(dst);
|
||||
nm_assert(src != *dst);
|
||||
nm_assert(!src || src != *dst);
|
||||
|
||||
if (nm_streq0(*dst, src)) {
|
||||
if (src)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue