Ticket #2518: useless_strlen.patch

File useless_strlen.patch, 682 bytes (added by pavlinux, 8 years ago)
  • src/filemanager/treestore.c

    diff --git a/src/filemanager/treestore.c b/src/filemanager/treestore.c
    index 9c13872..20ca64f 100644
    a b tree_store_load_from (char *name) 
    187187    FILE *file; 
    188188    char buffer[MC_MAXPATHLEN + 20], oldname[MC_MAXPATHLEN]; 
    189189    char *different; 
    190     int len, common; 
     190    int common; 
    191191    int do_load; 
    192192 
    193193    g_return_val_if_fail (name != NULL, FALSE); 
    tree_store_load_from (char *name) 
    238238 
    239239            lc_name = decode (buffer + 2); 
    240240 
    241             len = strlen (lc_name); 
     241             
    242242            if (lc_name[0] != PATH_SEP) 
    243243            { 
    244244                /* Clear-text decompression */