[libdazzle] shortcuts: we already check for NULL on the previous line



commit 6f2d8d14582275090c476af466e1ef3fb4ae8d07
Author: Christian Hergert <chergert redhat com>
Date:   Mon Jul 10 16:25:50 2017 -0700

    shortcuts: we already check for NULL on the previous line

 src/shortcuts/dzl-shortcut-closure-chain.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/shortcuts/dzl-shortcut-closure-chain.c b/src/shortcuts/dzl-shortcut-closure-chain.c
index f778f12..1b00c7c 100644
--- a/src/shortcuts/dzl-shortcut-closure-chain.c
+++ b/src/shortcuts/dzl-shortcut-closure-chain.c
@@ -198,7 +198,7 @@ dzl_shortcut_closure_chain_append_signalv (DzlShortcutClosureChain *chain,
 
   if (params != NULL)
     {
-      copy = g_array_sized_new (FALSE, TRUE, sizeof (GValue), params ? params->len : 0);
+      copy = g_array_sized_new (FALSE, TRUE, sizeof (GValue), params->len);
       g_array_set_clear_func (copy, (GDestroyNotify)g_value_unset);
       g_array_set_size (copy, params->len);
 


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