Changeset df7dc9e in mainline
- Timestamp:
- 2020-05-26T18:22:56Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f5a7773d
- Parents:
- 145a13b
- git-author:
- Petr Pavlu <setup@…> (2020-05-25 20:47:43)
- git-committer:
- Petr Pavlu <setup@…> (2020-05-26 18:22:56)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/generic/src/payload.c
r145a13b 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.