Don't choke on a zero handler_id.

2004-07-12  Matthias Clasen  <mclasen@redhat.com>

	* gsignal.c (g_signal_handler_is_connected): Don't
	choke on a zero handler_id.
This commit is contained in:
Matthias Clasen 2004-07-12 20:34:08 +00:00 committed by Matthias Clasen
parent a0465f83b1
commit 03657b9bf0
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-07-12 Matthias Clasen <mclasen@redhat.com>
* gsignal.c (g_signal_handler_is_connected): Don't
choke on a zero handler_id.
Tue Jul 6 00:46:43 2004 Matthias Clasen <maclas@gmx.de>
* gtypemodule.h:

View File

@ -1747,7 +1747,6 @@ g_signal_handler_is_connected (gpointer instance,
gboolean connected;
g_return_val_if_fail (G_TYPE_CHECK_INSTANCE (instance), FALSE);
g_return_val_if_fail (handler_id > 0, FALSE);
SIGNAL_LOCK ();
handler = handler_lookup (instance, handler_id, NULL);