dfp might be used uninitialized. NULL it.
authorEric Andersen <andersen@codepoet.org>
Tue, 21 Aug 2001 23:36:32 +0000 (23:36 -0000)
committerEric Andersen <andersen@codepoet.org>
Tue, 21 Aug 2001 23:36:32 +0000 (23:36 -0000)
libbb/copy_file.c

index c79fbeb14912fb8461ab0b1958896239c47846b1..9c1bba68994e9a172f63ddb55b94cd78f0aa1889 100644 (file)
@@ -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) {