From 3b9a24a7ca66aa52c101e311453b23d40093fed7 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Wed, 16 Oct 2019 11:11:19 +0200 Subject: [PATCH] tweaks: rename a local variable, to not shadow another --- src/files.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/files.c b/src/files.c index b20537ff..33f9272e 100644 --- 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();