projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8837b3
)
qga: report error on keyfile dump error
author
Marc-André Lureau
<marcandre.lureau@redhat.com>
Thu, 1 Jun 2017 12:38:47 +0000
(16:38 +0400)
committer
Michael Roth
<mdroth@linux.vnet.ibm.com>
Tue, 18 Jul 2017 00:22:14 +0000
(19:22 -0500)
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Cc:qemu-trivial@nongnu.org
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qga/main.c
patch
|
blob
|
history
diff --git
a/qga/main.c
b/qga/main.c
index dcd6104bb00065c58ef29cafb306a01d833225a3..1b381d0bf3547a32c9295f71da135ff00daa298b 100644
(file)
--- a/
qga/main.c
+++ b/
qga/main.c
@@
-1074,7
+1074,12
@@
static void config_dump(GAConfig *config)
g_free(tmp);
tmp = g_key_file_to_data(keyfile, NULL, &error);
- printf("%s", tmp);
+ if (error) {
+ g_critical("Failed to dump keyfile: %s", error->message);
+ g_clear_error(&error);
+ } else {
+ printf("%s", tmp);
+ }
g_free(tmp);
g_key_file_free(keyfile);