Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/generic/src/payload.c

    rdf7dc9e rdcc2c5d  
    6161{
    6262        char *e = (char *) ext(s);
    63         if (e != NULL && str_cmp(e, ".gz") == 0)
     63        if (str_cmp(e, ".gz") == 0)
    6464                *e = '\0';
    6565}
     
    6767static bool isgzip(const char *s)
    6868{
    69         const char *e = ext(s);
    70         return e != NULL && str_cmp(e, ".gz") == 0;
     69        return str_cmp(ext(s), ".gz") == 0;
    7170}
    7271
Note: See TracChangeset for help on using the changeset viewer.