diff options
Diffstat (limited to 'usr.bin/mg/search.c')
-rw-r--r-- | usr.bin/mg/search.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mg/search.c b/usr.bin/mg/search.c index af7fde28b4f..b15f5b53b2c 100644 --- a/usr.bin/mg/search.c +++ b/usr.bin/mg/search.c @@ -1,4 +1,4 @@ -/* $OpenBSD: search.c,v 1.15 2005/05/27 05:55:12 cloder Exp $ */ +/* $OpenBSD: search.c,v 1.16 2005/05/27 07:22:52 cloder Exp $ */ /* * Search commands. @@ -695,7 +695,7 @@ readpattern(char *prompt) char tpat[NPAT], *rep; int retval; - if (tpat[0] == '\0') + if (pat[0] == '\0') rep = ereply("%s: ", tpat, NPAT, prompt); else rep = ereply("%s: (default %s) ", tpat, NPAT, prompt, pat); |