diff src/search.c @ 945:0b211ebefd4e v7.0.071

updated for version 7.0-071
author vimboss
date Tue, 29 Aug 2006 15:58:12 +0000
parents b2dcb8457067
children 7d29124f77f5
line wrap: on
line diff
--- a/src/search.c
+++ b/src/search.c
@@ -1259,7 +1259,7 @@ do_search(oap, dirc, pat, count, options
 	/*
 	 * Add character and/or line offset
 	 */
-	if (!(options & SEARCH_NOOF) || *pat == ';')
+	if (!(options & SEARCH_NOOF) || (pat != NULL && *pat == ';'))
 	{
 	    if (spats[0].off.line)	/* Add the offset to the line number. */
 	    {