Changes in boot/generic/src/payload.c [dcc2c5d:df7dc9e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/generic/src/payload.c
rdcc2c5d rdf7dc9e 61 61 { 62 62 char *e = (char *) ext(s); 63 if ( str_cmp(e, ".gz") == 0)63 if (e != NULL && str_cmp(e, ".gz") == 0) 64 64 *e = '\0'; 65 65 } … … 67 67 static bool isgzip(const char *s) 68 68 { 69 return str_cmp(ext(s), ".gz") == 0; 69 const char *e = ext(s); 70 return e != NULL && str_cmp(e, ".gz") == 0; 70 71 } 71 72
Note:
See TracChangeset
for help on using the changeset viewer.