cpio.c:138: warning: `type' might be used uninitialized in this function



Hi!

Can somebody apply this patch?

ChangeLog:

* cpio.c (cpio_open_cpio_file): Fix type initialization.

--- vfs/cpio.c	Wed Jul  3 06:03:52 2002
+++ vfs/cpio.c	Wed Jul  3 15:40:39 2002
@@ -149,7 +149,7 @@ static int cpio_open_cpio_file(vfs *me, 
     mc_stat(name, &(super->u.cpio.stat));
     super->u.cpio.type = CPIO_UNKNOWN;
 
-    if (get_compression_type(fd) != COMPRESSION_NONE) {
+    if ((type = get_compression_type(fd)) != COMPRESSION_NONE) {
 	char *s;
 
 	mc_close(fd);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]