about summary refs log tree commit diff
path: root/src/core/nm-core-utils.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2024-09-01 22:38:46 +0200
committerMichael Biebl <biebl@debian.org>2024-09-01 22:38:46 +0200
commite89be0baafbf2359719e7150e374d9e3efde4513 (patch)
treeaeb24b61eb3ef72efd98bbc7de168df952f95a6b /src/core/nm-core-utils.c
parent81f4784c87916c34bda1865ca8aafdff7f8ba55a (diff)
parentf9bfd1158b8d08d6a5ed3bb7cc1ba7a6455e5201 (diff)
Update upstream source from tag 'upstream/1.49.90'
Update to upstream version '1.49.90'
with Debian dir 91100697245f76450c5ee1f238e8a69862e0f418
Diffstat (limited to 'src/core/nm-core-utils.c')
-rw-r--r--src/core/nm-core-utils.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/nm-core-utils.c b/src/core/nm-core-utils.c
index dd1e9939..6aa38be2 100644
--- a/src/core/nm-core-utils.c
+++ b/src/core/nm-core-utils.c
@@ -5096,7 +5096,9 @@ helper_complete(HelperInfo *info, GError *error)
     }
 
     nm_clear_g_cancellable_disconnect(g_task_get_cancellable(info->task), &info->cancellable_id);
-    g_task_return_pointer(info->task, nm_str_buf_finalize(&info->in_buffer, NULL), g_free);
+    g_task_return_pointer(info->task,
+                          nm_str_buf_finalize(&info->in_buffer, NULL) ?: g_new0(char, 1),
+                          g_free);
     helper_info_free(info);
 }