initilize things to quiet coverity

This commit is contained in:
Isaac Connor 2017-12-12 13:09:55 -05:00
parent 23a2f1e609
commit 568b15a916
1 changed files with 3 additions and 0 deletions

View File

@ -49,7 +49,10 @@ RegExpr::RegExpr( const char *pattern, int flags, int p_max_matches ) : max_matc
memset( match_lengths, 0, sizeof(*match_lengths)*max_matches );
match_valid = new bool[max_matches];
memset( match_valid, 0, sizeof(*match_valid)*max_matches );
} else {
match_vectors = NULL;
}
match_string = "";
n_matches = 0;
}