If xid_ht hasn't been created yet, don't do the lookup.

Thu Jul 16 20:11:36 1998  Owen Taylor  <otaylor@redhat.com>

	* gdk/gdkxid.c (gdk_xid_table_lookup): If xid_ht
	hasn't been created yet, don't do the lookup.
This commit is contained in:
Owen Taylor 1998-07-17 14:48:35 +00:00 committed by Owen Taylor
parent 2bc6d4548f
commit 656eaa93bf
2 changed files with 8 additions and 6 deletions

View File

@ -53,10 +53,11 @@ gdk_xid_table_remove (XID xid)
gpointer
gdk_xid_table_lookup (XID xid)
{
gpointer data;
data = g_hash_table_lookup (xid_ht, &xid);
gpointer data = NULL;
if (xid_ht)
data = g_hash_table_lookup (xid_ht, &xid);
return data;
}

View File

@ -53,10 +53,11 @@ gdk_xid_table_remove (XID xid)
gpointer
gdk_xid_table_lookup (XID xid)
{
gpointer data;
data = g_hash_table_lookup (xid_ht, &xid);
gpointer data = NULL;
if (xid_ht)
data = g_hash_table_lookup (xid_ht, &xid);
return data;
}