From cdc3231cb53dfb75cf0b9268f10ccda7f6b8d10d Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Tue, 9 May 2006 13:18:34 +0000 Subject: [PATCH] Fix another Coverity problem by adding an assert that says that some string we got from the lexer is null-terminated p4raw-id: //depot/perl@28137 --- op.c | 1 + 1 file changed, 1 insertion(+) diff --git a/op.c b/op.c index a866fcbf08..30231d3830 100644 --- a/op.c +++ b/op.c @@ -248,6 +248,7 @@ Perl_allocmy(pTHX_ char *name) /* 1999-02-27 mjd@plover.com */ char *p; p = strchr(name, '\0'); + assert(p); /* The next block assumes the buffer is at least 205 chars long. At present, it's always at least 256 chars. */ if (p - name > 200) { -- 2.34.1