[glib] Do not use a string literal when a format string is expected
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Do not use a string literal when a format string is expected
- Date: Mon, 25 May 2015 13:11:42 +0000 (UTC)
commit 525bbbd6bd7c9abb45c4ddfcfb8dcf45bbbd5726
Author: Emmanuele Bassi <ebassi gnome org>
Date: Mon May 25 14:04:06 2015 +0100
Do not use a string literal when a format string is expected
Otherwise we'll get compiler errors.
Based on a patch by: Vincent Le Garrec <legarrec vincent gmail com>
https://bugzilla.gnome.org/show_bug.cgi?id=696749
gio/gregistrysettingsbackend.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gregistrysettingsbackend.c b/gio/gregistrysettingsbackend.c
index 96df52c..922a9ea 100644
--- a/gio/gregistrysettingsbackend.c
+++ b/gio/gregistrysettingsbackend.c
@@ -228,7 +228,7 @@ g_message_win32_error (DWORD result_code,
if (result_code == ERROR_KEY_DELETED)
trace ("(%s)", win32_message);
else
- g_message (win32_message);
+ g_message ("%s", win32_message);
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]