[grilo-plugins] flickr: Move g_strconcat() to its own line



commit 9b13d140d22aab001bccfd6246f70872abcdae0d
Author: Rafael Fonseca <r4f4rfs gmail com>
Date:   Wed Jun 15 15:31:31 2016 +0200

    flickr: Move g_strconcat() to its own line
    
    https://bugzilla.gnome.org/show_bug.cgi?id=707643

 src/flickr/gflickr.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/flickr/gflickr.c b/src/flickr/gflickr.c
index 057518c..befd349 100644
--- a/src/flickr/gflickr.c
+++ b/src/flickr/gflickr.c
@@ -174,16 +174,16 @@ add_node (xmlNodePtr node, GHashTable *photo)
   xmlAttrPtr attr;
 
   for (attr = node->properties; attr != NULL; attr = attr->next) {
+    gchar *key;
     xmlChar *prop = xmlGetProp (node, attr->name);
     if (!prop)
       continue;
 
-    g_hash_table_insert (photo,
-                         g_strconcat ((const gchar *) node->name,
-                                      "_",
-                                      (const gchar *) attr->name,
-                                      NULL),
-                         prop);
+    key = g_strconcat ((const gchar *) node->name,
+                       "_",
+                       (const gchar *) attr->name,
+                       NULL);
+    g_hash_table_insert (photo, key, prop);
   }
 }
 


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