mirror of
https://github.com/irssi/irssi.git
synced 2025-01-03 14:56:47 -05:00
signal_emit() - one parameter after last one wasn't NULL but was taken
from va_list git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1132 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
c180c61816
commit
769815a3f4
@ -239,7 +239,7 @@ static int signal_emitv_id(int signal_id, int params, va_list va)
|
||||
g_return_val_if_fail(params >= 0 && params <= SIGNAL_MAX_ARGUMENTS, FALSE);
|
||||
|
||||
for (n = 0; n < SIGNAL_MAX_ARGUMENTS; n++)
|
||||
arglist[n] = n > params ? NULL : va_arg(va, gconstpointer);
|
||||
arglist[n] = n >= params ? NULL : va_arg(va, gconstpointer);
|
||||
|
||||
rec = g_hash_table_lookup(signals, GINT_TO_POINTER(signal_id));
|
||||
if (rec != NULL && signal_emit_real(rec, arglist))
|
||||
|
Loading…
Reference in New Issue
Block a user