mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-23 21:29:39 +03:00
tweaks: rename a local variable, to not shadow another
This commit is contained in:
parent
7d3290fb91
commit
3b9a24a7ca
10
src/files.c
10
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();
|
||||
|
Loading…
Reference in New Issue
Block a user