nano

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

commit 3b9a24a7ca66aa52c101e311453b23d40093fed7
parent 7d3290fb9164f1ae75b215cb4269263a88e865be
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Wed, 16 Oct 2019 11:11:19 +0200

tweaks: rename a local variable, to not shadow another

Diffstat:
Msrc/files.c | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/files.c b/src/files.c @@ -1930,12 +1930,12 @@ bool write_file(const char *name, FILE *f_open, bool tmp, /* If the syntax changed, discard and recompute the multidata. */ if (strcmp(oldname, newname) != 0) { - linestruct *line = openfile->filetop; + linestruct *lin = openfile->filetop; - while (line != NULL) { - free(line->multidata); - line->multidata = NULL; - line = line->next; + while (lin != NULL) { + free(lin->multidata); + lin->multidata = NULL; + lin = lin->next; } precalc_multicolorinfo();