diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-08-21 23:36:32 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-08-21 23:36:32 +0000 |
commit | 873ec1d4e4d54ab22b2c18765154097a922daf2f (patch) | |
tree | f553c08e11f6e1d971b4859709152018f2408a23 /libbb | |
parent | 69b02f039a1b47094eb8542110a65858f632d5ff (diff) | |
download | busybox-w32-873ec1d4e4d54ab22b2c18765154097a922daf2f.tar.gz busybox-w32-873ec1d4e4d54ab22b2c18765154097a922daf2f.tar.bz2 busybox-w32-873ec1d4e4d54ab22b2c18765154097a922daf2f.zip |
dfp might be used uninitialized. NULL it.
git-svn-id: svn://busybox.net/trunk/busybox@3323 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/copy_file.c | 2 |
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) | |||
131 | status = -1; | 131 | status = -1; |
132 | } | 132 | } |
133 | } else if (S_ISREG(source_stat.st_mode)) { | 133 | } else if (S_ISREG(source_stat.st_mode)) { |
134 | FILE *sfp, *dfp; | 134 | FILE *sfp, *dfp=NULL; |
135 | 135 | ||
136 | if (dest_exists) { | 136 | if (dest_exists) { |
137 | if (flags & FILEUTILS_INTERACTIVE) { | 137 | if (flags & FILEUTILS_INTERACTIVE) { |