Commit 54c0572d authored by Beniamino Galvani's avatar Beniamino Galvani

cli: fix editor crash

Ensure @cmd_arg0 is not freed when returning it.

Fixes: 88699435
parent ffc04e17
......@@ -6656,7 +6656,7 @@ split_editor_main_cmd_args (const char *str, char **setting, char **property, ch
NM_SET_OUT (setting, g_strndup (cmd_arg0, s - cmd_arg0));
NM_SET_OUT (property, g_strdup (&s[1]));
} else {
NM_SET_OUT (property, cmd_arg0);
NM_SET_OUT (property, g_steal_pointer (&cmd_arg0));
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment