From 8b6a126125e4fd9a454406d9a98d0c5cef9e5705 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Sat, 21 May 2005 03:24:50 +0000 Subject: [PATCH] * extfs.c: Fix warnings reported by gcc 4.0.0. --- vfs/ChangeLog | 4 ++++ vfs/extfs.c | 10 +++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/vfs/ChangeLog b/vfs/ChangeLog index e2cd1574e..e022f3c0a 100644 --- a/vfs/ChangeLog +++ b/vfs/ChangeLog @@ -1,3 +1,7 @@ +2005-05-20 Pavel Roskin + + * extfs.c: Fix warnings reported by gcc 4.0.0. + 2005-05-13 Roland Illig * ftpfs.c: Using HAVE_SOCKLEN_T instead of HAVE_C_TYPE_SOCKLEN_T. diff --git a/vfs/extfs.c b/vfs/extfs.c index dcc67564c..19482ab33 100644 --- a/vfs/extfs.c +++ b/vfs/extfs.c @@ -635,7 +635,7 @@ extfs_cmd (const char *extfs_cmd, struct archive *archive, static void extfs_run (struct vfs_class *me, const char *file) { - struct archive *archive; + struct archive *archive = NULL; char *p, *q, *archive_name, *mc_extfsdir; char *cmd; @@ -659,7 +659,7 @@ static void * extfs_open (struct vfs_class *me, const char *file, int flags, int mode) { struct pseudofile *extfs_info; - struct archive *archive; + struct archive *archive = NULL; char *q; struct entry *entry; int local_handle; @@ -865,7 +865,7 @@ static int extfs_errno (struct vfs_class *me) static void * extfs_opendir (struct vfs_class *me, const char *dirname) { - struct archive *archive; + struct archive *archive = NULL; char *q; struct entry *entry; struct entry **info; @@ -1118,7 +1118,7 @@ cleanup: static int extfs_chdir (struct vfs_class *me, const char *path) { - struct archive *archive; + struct archive *archive = NULL; char *q; struct entry *entry; @@ -1146,7 +1146,7 @@ static int extfs_lseek (void *data, off_t offset, int whence) static vfsid extfs_getid (struct vfs_class *me, const char *path) { - struct archive *archive; + struct archive *archive = NULL; char *p; if (!(p = extfs_get_path (me, path, &archive, 1)))