Commit 1e5614b3 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: avoid two compiler warnings

No related merge requests found
Showing with 2 additions and 2 deletions
+2 -2
......@@ -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. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment