diff mcabber/src/utils.c @ 979:ea939ff047d8

Improve /buffer search_* Quotes can be used in search strings, for example one can search for " is " now (with spaces around the word).
author Mikael Berthe <mikael@lilotux.net>
date Sat, 21 Oct 2006 11:22:15 +0200
parents 5b01de4ac5e1
children c0d44a9a99bc
line wrap: on
line diff
--- a/mcabber/src/utils.c	Sat Oct 21 11:07:50 2006 +0200
+++ b/mcabber/src/utils.c	Sat Oct 21 11:22:15 2006 +0200
@@ -383,6 +383,8 @@
   int escape = FALSE;
   char *p;
 
+  if (!s) return;
+
   for (p = s; *p; p++) {
     if (*p == '"') {
       if (!escape) {