commit 6c34ae580442458dff36da534d8879453705176d
parent 4409b275fcd22db41f044a6cf73eacf20997ec87
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sun, 1 Mar 2020 19:22:35 +0100
files: don't check uninitialized memory when writing new file [valgrind]
This fixes https://savannah.gnu.org/bugs/?57934.
Bug existed since version 4.3, commit e8e30e51.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/files.c b/src/files.c
@@ -1701,7 +1701,7 @@ bool write_file(const char *name, FILE *thefile, bool tmp,
}
}
- if (!tmp && S_ISFIFO(st.st_mode))
+ if (isactualfile && S_ISFIFO(st.st_mode))
statusbar(_("Writing to FIFO..."));
#endif /* !NANO_TINY */