[Pcre-svn] [1458] code/trunk/pcre_jit_compile.c: Get rid of …

Top Page
Delete this message
Author: Subversion repository
Date:  
To: pcre-svn
Subject: [Pcre-svn] [1458] code/trunk/pcre_jit_compile.c: Get rid of "uninitialized" compiler warning.
Revision: 1458
          http://vcs.pcre.org/viewvc?view=rev&revision=1458
Author:   ph10
Date:     2014-03-04 10:12:15 +0000 (Tue, 04 Mar 2014)


Log Message:
-----------
Get rid of "uninitialized" compiler warning.

Modified Paths:
--------------
    code/trunk/pcre_jit_compile.c


Modified: code/trunk/pcre_jit_compile.c
===================================================================
--- code/trunk/pcre_jit_compile.c    2014-03-02 14:49:27 UTC (rev 1457)
+++ code/trunk/pcre_jit_compile.c    2014-03-04 10:12:15 UTC (rev 1458)
@@ -3559,6 +3559,7 @@
   }


in_range = FALSE;
+from = 0; /* Prevent compiler "uninitialized" warning */
for (i = 0; i <= max; i++)
{
if (in_range && (i - from) > range_len && (bytes[(i - 1) * MAX_N_BYTES] <= 4))