changeset 18423:48067a8f6a32

Do not crash on NULL checks.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Tue, 03 Jul 2007 09:42:48 +0000
parents b8cf3002bb99
children 0b71d043a1f1
files finch/libgnt/gntkeys.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/finch/libgnt/gntkeys.c	Tue Jul 03 09:41:22 2007 +0000
+++ b/finch/libgnt/gntkeys.c	Tue Jul 03 09:42:48 2007 +0000
@@ -154,7 +154,7 @@
 
 const char *gnt_key_translate(const char *name)
 {
-	return g_hash_table_lookup(specials, name);
+	return name ? g_hash_table_lookup(specials, name) : NULL;
 }
 
 typedef struct {