This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Coverity insists that if we deference a pointer without checking, and
authorNicholas Clark <nick@ccl4.org>
Tue, 18 Apr 2006 10:54:15 +0000 (10:54 +0000)
committerNicholas Clark <nick@ccl4.org>
Tue, 18 Apr 2006 10:54:15 +0000 (10:54 +0000)
commitecaa9b9cab16865b1a89bd4b15cd989b1eb47178
treebf39f62c407c2b9e49b559f132a4e738cd45695c
parent903fe02ab005d9a6f5d2870ed93bddff5a74bffb
Coverity insists that if we deference a pointer without checking, and
subsequently check that same pointer before deferencing it, something
in our code or our logic is bogus. So assert() that it's safe the
first time and remove the second check.

p4raw-id: //depot/perl@27882
regcomp.c