[gegl] svg-load: use format string instead of trusting error message
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] svg-load: use format string instead of trusting error message
- Date: Sat, 19 Mar 2016 13:07:59 +0000 (UTC)
commit 16846e26813022be575bd77d84e22a9f6b35eab0
Author: Øyvind Kolås <pippin gimp org>
Date: Sat Mar 19 14:05:31 2016 +0100
svg-load: use format string instead of trusting error message
operations/external/svg-load.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/operations/external/svg-load.c b/operations/external/svg-load.c
index ad51ab1..fe8e338 100644
--- a/operations/external/svg-load.c
+++ b/operations/external/svg-load.c
@@ -164,7 +164,7 @@ prepare (GeglOperation *operation)
stream = gegl_gio_open_input_stream (o->uri, o->path, &p->file, &error);
if (stream == NULL)
{
- g_warning (error->message);
+ g_warning ("%s", error->message);
g_error_free (error);
cleanup (operation);
return;
@@ -175,7 +175,7 @@ prepare (GeglOperation *operation)
NULL, &error);
if (p->handle == NULL)
{
- g_warning (error->message);
+ g_warning ("%s", error->message);
g_error_free (error);
cleanup (operation);
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]