changeset 7584:9e93a4bf1934

[gaim-migrate @ 8202] Complain if we pass NULL for instance or signal in gaim_signal_emit(). committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Fri, 21 Nov 2003 08:18:28 +0000
parents 532635bc38c1
children 404f4a4b81da
files src/signals.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/signals.c	Fri Nov 21 05:19:54 2003 +0000
+++ b/src/signals.c	Fri Nov 21 08:18:28 2003 +0000
@@ -398,6 +398,9 @@
 {
 	va_list args;
 
+	g_return_if_fail(instance != NULL);
+	g_return_if_fail(signal   != NULL);
+
 	va_start(args, signal);
 	gaim_signal_emit_vargs(instance, signal, args);
 	va_end(args);