Ignore:
File:
1 edited

Legend:

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

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