gclosure: Remove an unused alloca() and assignment
authorPhilip Withnall <philip@tecnocode.co.uk>
Sat, 21 Jun 2014 11:29:09 +0000 (12:29 +0100)
committerPhilip Withnall <philip@tecnocode.co.uk>
Sun, 22 Jun 2014 11:57:57 +0000 (12:57 +0100)
Coverity issue: #1159511

https://bugzilla.gnome.org/show_bug.cgi?id=732005

gobject/gclosure.c

index b516b05..e3a01c2 100644 (file)
@@ -1490,9 +1490,6 @@ g_cclosure_marshal_generic_va (GClosure *closure,
   args =  g_alloca (sizeof (gpointer) * n_args);
   storage = g_alloca (sizeof (va_arg_storage) * n_params);
 
-  if (tmpval_used)
-    enum_tmpval = g_alloca (sizeof (gint));
-
   if (G_CCLOSURE_SWAP_DATA (closure))
     {
       atypes[n_args-1] = &ffi_type_pointer;