Sfoglia il codice sorgente

Merge branch 'upstream-KWSys' into ci-fedora-38

* upstream-KWSys:
  KWSys 2023-05-22 (df6f93a4)
Brad King 2 anni fa
parent
commit
08bccb2dfd
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      Source/kwsys/RegularExpression.cxx

+ 4 - 0
Source/kwsys/RegularExpression.cxx

@@ -378,6 +378,10 @@ bool RegularExpression::compile(const char* exp)
     return false;
     return false;
   }
   }
 
 
+#ifdef __clang_analyzer__ /* Convince it that the program is initialized.  */
+  memset(this->program, 0, comp.regsize);
+#endif
+
   // Second pass: emit code.
   // Second pass: emit code.
   comp.regparse = exp;
   comp.regparse = exp;
   comp.regnpar = 1;
   comp.regnpar = 1;