glib-aux: fix assertion in nm_strdup_reset_take()

Fixes: c4d981959e ('shared: add nm_utils_strdup_reset_take() helper')
(cherry picked from commit b450221195)
This commit is contained in:
Thomas Haller 2021-10-23 22:19:28 +02:00
parent 4ce3372a7e
commit 083482fd7f
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -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)