mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/virt-viewer
synced 2025-12-27 23:00:54 +00:00
Use format string
to fix
virt-viewer.c: In function 'virt_viewer_connect':
virt-viewer.c:686:13: error: format not a string literal and no format arguments [-Werror=format-security]
g_warning(error->message);
This commit is contained in:
parent
7c0967fc8c
commit
fda35e6976
@ -683,7 +683,7 @@ virt_viewer_connect(VirtViewerApp *app)
|
||||
|
||||
if (!virt_viewer_app_initial_connect(app, &error)) {
|
||||
if (error)
|
||||
g_warning(error->message);
|
||||
g_warning("%s", error->message);
|
||||
g_clear_error(&error);
|
||||
return -1;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user