Minor code fix to avoid static analyzer complaint.

This commit is contained in:
Philip.Hazel 2018-09-06 15:59:11 +00:00
parent 663662806a
commit 80c57b59f6
2 changed files with 7 additions and 1 deletions

View File

@ -185,6 +185,10 @@ repeated conditional subpattern, and can be found to be anchored if the minimum
quantifier is one or more. I can't see much use for a repeated anchored
pattern, but the behaviour is now consistent.
41. Minor addition to pcre2_jit_compile.c to avoid static analyzer complaint
(for an event that could never occur but you had to have external information
to know that).
Version 10.31 12-February-2018
------------------------------

View File

@ -7,7 +7,7 @@ and semantics are as close as possible to those of the Perl 5 language.
Written by Philip Hazel
Original API code Copyright (c) 1997-2012 University of Cambridge
New API code Copyright (c) 2016-2017 University of Cambridge
New API code Copyright (c) 2016-2018 University of Cambridge
-----------------------------------------------------------------------------
Redistribution and use in source and binary forms, with or without
@ -5901,6 +5901,8 @@ for (i = 0; i < 32; i++)
}
}
if (len == 0) return FALSE; /* Should never occur, but stops analyzers complaining. */
i = 0;
j = 0;