[seed] Bug 710658 - Fix seed_make_exception format string



commit 117b9d1bc42e9a7ac12207084473be1b6520a5cb
Author: Laurent Bigonville <l bigonville edpnet be>
Date:   Mon Oct 28 16:06:27 2013 +0800

    Bug 710658 - Fix seed_make_exception format string
    
    https://bugzilla.gnome.org/show_bug.cgi?id=710658
    
    Fixes seed 3.8.1 which is FTBFS when compiled with the -Werror=format-security

 libseed/seed-types.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/libseed/seed-types.c b/libseed/seed-types.c
index 5f17d9b..17bb29c 100644
--- a/libseed/seed-types.c
+++ b/libseed/seed-types.c
@@ -1211,10 +1211,8 @@ seed_value_from_gi_argument_full (JSContextRef ctx,
         if ((key_type_tag != GI_TYPE_TAG_UTF8) &&
             (key_type_tag != GI_TYPE_TAG_FILENAME))
           {
-            char *error_message = g_strdup_printf ("Unable to make object from hash table indexed with 
values of type %s", g_type_tag_to_string (key_type_tag));
             seed_make_exception (ctx, exception, "ArgumentError",
-                                 error_message);
-            g_free (error_message);
+                                 "Unable to make object from hash table indexed with values of type %s", 
g_type_tag_to_string (key_type_tag));
             return JSValueMakeNull (ctx);
           }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]