[libdazzle] shortcuts: use concat to join GSList links



commit 7bb5c5f5afd09e52265b516210f796f55c757619
Author: Christian Hergert <chergert redhat com>
Date:   Fri Jul 27 20:54:34 2018 -0700

    shortcuts: use concat to join GSList links

 src/shortcuts/dzl-shortcut-closure-chain.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/shortcuts/dzl-shortcut-closure-chain.c b/src/shortcuts/dzl-shortcut-closure-chain.c
index 3df9358..0fe242c 100644
--- a/src/shortcuts/dzl-shortcut-closure-chain.c
+++ b/src/shortcuts/dzl-shortcut-closure-chain.c
@@ -63,7 +63,7 @@ dzl_shortcut_closure_chain_append (DzlShortcutClosureChain *chain,
   if (element == NULL)
     return chain;
 
-  ret = g_slist_append (&chain->node, &element->node)->data;
+  ret = g_slist_concat (&chain->node, &element->node)->data;
 
   g_return_val_if_fail (DZL_IS_SHORTCUT_CLOSURE_CHAIN (ret), NULL);
 


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