Skip to content
Snippets Groups Projects
Commit 199aa713 authored by Brad King's avatar Brad King
Browse files

RegularExpression: Tell clang-analyzer that program memory is initialized

parent a3ff01ab
No related branches found
No related tags found
1 merge request!283RegularExpression: Tell clang-analyzer that program memory is initialized
......@@ -378,6 +378,10 @@ bool RegularExpression::compile(const char* exp)
return false;
}
#ifdef __clang_analyzer__ /* Convince it that the program is initialized. */
memset(this->program, 0, comp.regsize);
#endif
// Second pass: emit code.
comp.regparse = exp;
comp.regnpar = 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment