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:
Guido Günther 2013-06-25 12:32:31 +02:00 committed by Christophe Fergeau
parent 7c0967fc8c
commit fda35e6976

View File

@ -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;
}