Commit 656eaa93 authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor

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.
parent 2bc6d454
......@@ -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;
}
......
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment