From 5f6b68862e1d7fba08b212fb44156892463e1d0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Klime=C5=A1?= Date: Thu, 10 Feb 2011 16:27:33 +0100 Subject: [PATCH] cli: fix "format not a string literal and no format arguments" cc error The string could contain printf format sequences. --- cli/src/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/utils.c b/cli/src/utils.c index 8a8aac70d6..bcc51bbd87 100644 --- a/cli/src/utils.c +++ b/cli/src/utils.c @@ -330,7 +330,7 @@ nmc_is_nm_running (NmCli *nmc, GError **error) g_string_printf (nmc->return_text, _("Error: Couldn't create D-Bus object proxy for org.freedesktop.DBus")); nmc->return_value = NMC_RESULT_ERROR_UNKNOWN; if (error) - g_set_error (error, 0, 0, nmc->return_text->str); + g_set_error (error, 0, 0, "%s", nmc->return_text->str); goto done; }