From 873ec1d4e4d54ab22b2c18765154097a922daf2f Mon Sep 17 00:00:00 2001 From: andersen Date: Tue, 21 Aug 2001 23:36:32 +0000 Subject: dfp might be used uninitialized. NULL it. git-svn-id: svn://busybox.net/trunk/busybox@3323 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- libbb/copy_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbb') 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) { -- cgit v1.2.3-55-g6feb