summaryrefslogtreecommitdiff
path: root/libbb/copy_file.c
diff options
context:
space:
mode:
authorEric Andersen2001-08-21 23:36:32 +0000
committerEric Andersen2001-08-21 23:36:32 +0000
commit75220b55ffabfc93512a380d3a90fe21333a6ff9 (patch)
treef553c08e11f6e1d971b4859709152018f2408a23 /libbb/copy_file.c
parent994c6ffd3ba666ebec1bf72ff786ed85b6894eda (diff)
downloadbusybox-75220b55ffabfc93512a380d3a90fe21333a6ff9.zip
busybox-75220b55ffabfc93512a380d3a90fe21333a6ff9.tar.gz
dfp might be used uninitialized. NULL it.
Diffstat (limited to 'libbb/copy_file.c')
-rw-r--r--libbb/copy_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/copy_file.c b/libbb/copy_file.c
index c79fbeb..9c1bba6 100644
--- a/libbb/copy_file.c
+++ b/libbb/copy_file.c
@@ -131,7 +131,7 @@ int copy_file(const char *source, const char *dest, int flags)
status = -1;
}
} else if (S_ISREG(source_stat.st_mode)) {
- FILE *sfp, *dfp;
+ FILE *sfp, *dfp=NULL;
if (dest_exists) {
if (flags & FILEUTILS_INTERACTIVE) {