tweaks: avoid two compiler warnings
parent
04b9b9c78b
commit
1e5614b31b
|
@ -343,7 +343,7 @@ void reset_multis_for_id(filestruct *fileptr, int index)
|
|||
void reset_multis(filestruct *fileptr, bool force)
|
||||
{
|
||||
const colortype *ink;
|
||||
int nobegin, noend;
|
||||
int nobegin = 0, noend = 0;
|
||||
regmatch_t startmatch, endmatch;
|
||||
|
||||
/* If there is no syntax or no multiline regex, there is nothing to do. */
|
||||
|
|
|
@ -658,7 +658,7 @@ void parse_colors(char *ptr, int rex_flags)
|
|||
/* Now for the fun part. Start adding regexes to individual strings
|
||||
* in the colorstrings array, woo! */
|
||||
while (ptr != NULL && *ptr != '\0') {
|
||||
colortype *newcolor;
|
||||
colortype *newcolor = NULL;
|
||||
/* The container for a color plus its regexes. */
|
||||
bool goodstart;
|
||||
/* Whether the start expression was valid. */
|
||||
|
|
Loading…
Reference in New Issue