Commit 4d709f35 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

make sure index is initialized in order to avoid a warning

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2225 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent 68e30165
Showing with 2 additions and 2 deletions
+2 -2
......@@ -3185,7 +3185,7 @@ void edit_add(const filestruct *fileptr, const char *converted, int
int paintlen;
/* Number of chars to paint on this line. There are COLS
* characters on a whole line. */
size_t index;
size_t index = 0;
/* Index in converted where we paint. */
regmatch_t startmatch; /* match position for start_regexp */
regmatch_t endmatch; /* match position for end_regexp */
......@@ -3408,7 +3408,7 @@ void edit_add(const filestruct *fileptr, const char *converted, int
int paintlen;
/* Number of chars to paint on this line. There are COLS
* characters on a whole line. */
size_t index;
size_t index = 0;
/* Index in converted where we paint. */
mark_order(&top, &top_x, &bot, &bot_x, NULL);
......
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