[gnome-battery-bench] Fix a missing format string
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-battery-bench] Fix a missing format string
- Date: Thu, 29 Jan 2015 04:02:50 +0000 (UTC)
commit 74d54486c592d9c05ad746d11cb9320f22dc0926
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Wed Jan 28 22:27:15 2015 -0500
Fix a missing format string
die() should be called with a format string, not a variable string.
src/commandline.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/commandline.c b/src/commandline.c
index 7002a30..1558d34 100644
--- a/src/commandline.c
+++ b/src/commandline.c
@@ -163,7 +163,7 @@ play_local(int argc, char **argv)
GError *error = NULL;
GbbEventPlayer *player = GBB_EVENT_PLAYER(gbb_evdev_player_new("Gnome Battery Bench Test", &error));
if (player == NULL)
- die(error->message);
+ die("%s", error->message);
return do_play(player, argc, argv);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]