tweaks: avoid two compiler warnings

master
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) void reset_multis(filestruct *fileptr, bool force)
{ {
const colortype *ink; const colortype *ink;
int nobegin, noend; int nobegin = 0, noend = 0;
regmatch_t startmatch, endmatch; regmatch_t startmatch, endmatch;
/* If there is no syntax or no multiline regex, there is nothing to do. */ /* 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 /* Now for the fun part. Start adding regexes to individual strings
* in the colorstrings array, woo! */ * in the colorstrings array, woo! */
while (ptr != NULL && *ptr != '\0') { while (ptr != NULL && *ptr != '\0') {
colortype *newcolor; colortype *newcolor = NULL;
/* The container for a color plus its regexes. */ /* The container for a color plus its regexes. */
bool goodstart; bool goodstart;
/* Whether the start expression was valid. */ /* Whether the start expression was valid. */