nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 1e5614b31b0668d762b9986a3a0e0192f2703337
parent 04b9b9c78bea24e391e8f9de8c5b66b92e0642fc
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Fri, 22 Jul 2016 15:48:06 +0200

tweaks: avoid two compiler warnings

Diffstat:
Msrc/color.c | 2+-
Msrc/rcfile.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/color.c b/src/color.c @@ -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. */ diff --git a/src/rcfile.c b/src/rcfile.c @@ -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. */