mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-01 10:20:30 +01:00
glib-aux: fix assertion in nm_strdup_reset_take()
Fixes:c4d981959e('shared: add nm_utils_strdup_reset_take() helper') (cherry picked from commitb450221195)
This commit is contained in:
parent
4ce3372a7e
commit
083482fd7f
1 changed files with 1 additions and 1 deletions
|
|
@ -2770,7 +2770,7 @@ nm_utils_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