From 25ee1a338628d68664a50a979d6bbb9f04479a2f Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Mon, 21 May 2012 17:32:50 +0300 Subject: [PATCH] Fix virus crash --- virus.c | 1 + 1 file changed, 1 insertion(+) diff --git a/virus.c b/virus.c index 469173c..2742df9 100644 --- a/virus.c +++ b/virus.c @@ -1178,6 +1178,7 @@ do_cmd (Byte c) // user changed mind and erased the "/"- do nothing break; case 'N': // N- backward search for last pattern + if (last_search_pattern == 0) break; if (cmdcnt-- > 1) { do_cmd (c); -- 2.47.3