summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Src/pattern.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 555bec1c5..2d816cbc0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2004-11-19  Peter Stephenson  <pws@csr.com>
 
+	* 20568: Src/pattern.c: in debug test, checking for NULL
+	character is no longer valid.
+
 	* 20566: Src/signames2.awk: prefer SIGCHLD to SIGCLD.
 	Also (unposted) prefer SIGPOLL to SIGIO.
 
diff --git a/Src/pattern.c b/Src/pattern.c
index 528c48d5e..679a8399e 100644
--- a/Src/pattern.c
+++ b/Src/pattern.c
@@ -2577,7 +2577,7 @@ patmatch(Upat prog)
 
 		if (P_OP(scan) == P_EXACTLY) {
 		    char *nextexact = savexact;
-		    DPUTS(!savexact || !*savexact,
+		    DPUTS(!savexact,
 			  "BUG: exact match has not set exactpos");
 		    CHARINC(nextexact);