tweaks: avoid two compiler warnings

This commit is contained in:
Benno Schulenberg 2016-07-22 15:48:06 +02:00
parent 04b9b9c78b
commit 1e5614b31b
2 changed files with 2 additions and 2 deletions

View File

@ -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. */

View File

@ -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. */