Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/compl.c

    r6afc9d7 r3e6a98c5  
    209209                *cstart += rpath_sep + 1 - prefix;
    210210                free(prefix);
    211                 prefix = NULL;
    212211
    213212                cs->path_list = malloc(sizeof(char *) * 2);
     
    253252        }
    254253
    255         if ((cs != NULL) && (cs->prefix != NULL))
     254        if (cs != NULL && cs->prefix != NULL)
    256255                free(cs->prefix);
    257        
    258256        if (dirname != NULL)
    259257                free(dirname);
    260        
    261258        if (prefix != NULL)
    262259                free(prefix);
    263        
    264260        if (stext != NULL)
    265261                free(stext);
    266        
    267262        if (cs != NULL)
    268263                free(cs);
    269        
    270264        if (tokens != NULL)
    271265                free(tokens);
     
    360354                                asprintf(&ent_path, "%s/%s", *cs->path, dent->d_name);
    361355                                struct stat ent_stat;
    362                                 if (stat(ent_path, &ent_stat) != 0) {
     356                                if (stat(ent_path, &ent_stat) != EOK) {
    363357                                        /* Error */
    364358                                        free(ent_path);
Note: See TracChangeset for help on using the changeset viewer.