projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee3878b
)
plugins/lockstep: preserve sock_path
author
Alex Bennée
<alex.bennee@linaro.org>
Fri, 5 Jul 2024 08:40:30 +0000
(09:40 +0100)
committer
Alex Bennée
<alex.bennee@linaro.org>
Fri, 5 Jul 2024 11:34:41 +0000
(12:34 +0100)
We can't assign sock_path directly from the autofree'd GStrv, take a
copy.
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <
20240705084047
.857176-24-alex.bennee@linaro.org>
contrib/plugins/lockstep.c
patch
|
blob
|
history
diff --git
a/contrib/plugins/lockstep.c
b/contrib/plugins/lockstep.c
index 237543b43a76a1e657ddaef150314fc295366764..67a779ee9d9029b8f4df05d87aa47b988f758480 100644
(file)
--- a/
contrib/plugins/lockstep.c
+++ b/
contrib/plugins/lockstep.c
@@
-347,7
+347,7
@@
QEMU_PLUGIN_EXPORT int qemu_plugin_install(qemu_plugin_id_t id,
return -1;
}
} else if (g_strcmp0(tokens[0], "sockpath") == 0) {
- sock_path =
tokens[1]
;
+ sock_path =
g_strdup(tokens[1])
;
} else {
fprintf(stderr, "option parsing failed: %s\n", p);
return -1;