diff libnnchat.c @ 108:f323b137ca08

Tab-completion now works with cycling, but bugs with names that have whitespaces.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 23 Oct 2010 02:01:00 +0300
parents c587a99e2096
children 741e45592522
line wrap: on
line diff
--- a/libnnchat.c	Fri Oct 22 12:07:38 2010 +0300
+++ b/libnnchat.c	Sat Oct 23 02:01:00 2010 +0300
@@ -657,7 +657,7 @@
 {
     uint8_t hash;
     
-    if (list == NULL) return NULL;
+    if (list == NULL || pattern == NULL) return NULL;
 
     hash = nn_hash_user(pattern);
     if (list->buckets[hash] != NULL) {