aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
Diffstat (limited to 'libbb')
-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 c79fbeb14..9c1bba689 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) {