cli: fix "format not a string literal and no format arguments" cc error

The string could contain printf format sequences.
This commit is contained in:
Jiří Klimeš
2011-02-10 16:27:33 +01:00
parent 83dc4032b7
commit 5f6b68862e

View File

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