lib/vfs/direntry.c | 14 ++++++--------
1 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/lib/vfs/direntry.c b/lib/vfs/direntry.c
index 0a039ef..1c7ec51 100644
a
|
b
|
const char * |
1029 | 1029 | vfs_s_get_path_mangle (struct vfs_class *me, char *inname, struct vfs_s_super **archive, int flags) |
1030 | 1030 | { |
1031 | 1031 | GList *iter; |
| 1032 | struct vfs_s_super *super; |
| 1033 | void *cookie = NULL; |
1032 | 1034 | const char *retval; |
1033 | 1035 | char *local, *op; |
1034 | 1036 | const char *archive_name; |
1035 | | int result = -1; |
1036 | | struct vfs_s_super *super; |
1037 | | void *cookie = NULL; |
1038 | | |
| 1037 | int i; |
| 1038 | |
1039 | 1039 | archive_name = inname; |
1040 | 1040 | vfs_split (inname, &local, &op); |
1041 | 1041 | retval = (local != NULL) ? local : ""; |
… |
… |
vfs_s_get_path_mangle (struct vfs_class *me, char *inname, struct vfs_s_super ** |
1049 | 1049 | |
1050 | 1050 | for (iter = MEDATA->supers; iter != NULL; iter = g_list_next (iter)) |
1051 | 1051 | { |
1052 | | int i; |
1053 | | |
1054 | 1052 | super = (struct vfs_s_super *) iter->data; |
1055 | 1053 | |
1056 | 1054 | /* 0 == other, 1 == same, return it, 2 == other but stop scanning */ |
… |
… |
vfs_s_get_path_mangle (struct vfs_class *me, char *inname, struct vfs_s_super ** |
1067 | 1065 | ERRNOR (EIO, NULL); |
1068 | 1066 | |
1069 | 1067 | super = vfs_s_new_super (me); |
1070 | | result = MEDATA->open_archive (me, super, archive_name, op); |
1071 | | if (result == -1) |
| 1068 | |
| 1069 | if ( MEDATA->open_archive (me, super, archive_name, op) == -1) |
1072 | 1070 | { |
1073 | 1071 | vfs_s_free_super (me, super); |
1074 | 1072 | ERRNOR (EIO, NULL); |