Ticket #2537: somefixes.patch

File somefixes.patch, 1.4 KB (added by pavlinux, 14 years ago)
  • lib/vfs/direntry.c

     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 * 
    10291029vfs_s_get_path_mangle (struct vfs_class *me, char *inname, struct vfs_s_super **archive, int flags) 
    10301030{ 
    10311031    GList *iter; 
     1032    struct vfs_s_super *super; 
     1033    void *cookie = NULL; 
    10321034    const char *retval; 
    10331035    char *local, *op; 
    10341036    const char *archive_name; 
    1035     int result = -1; 
    1036     struct vfs_s_super *super; 
    1037     void *cookie = NULL; 
    1038  
     1037    int i; 
     1038     
    10391039    archive_name = inname; 
    10401040    vfs_split (inname, &local, &op); 
    10411041    retval = (local != NULL) ? local : ""; 
    vfs_s_get_path_mangle (struct vfs_class *me, char *inname, struct vfs_s_super ** 
    10491049 
    10501050    for (iter = MEDATA->supers; iter != NULL; iter = g_list_next (iter)) 
    10511051    { 
    1052         int i; 
    1053  
    10541052        super = (struct vfs_s_super *) iter->data; 
    10551053 
    10561054        /* 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 ** 
    10671065        ERRNOR (EIO, NULL); 
    10681066 
    10691067    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) 
    10721070    { 
    10731071        vfs_s_free_super (me, super); 
    10741072        ERRNOR (EIO, NULL);