This commit is contained in:
Pavel Krajcevski 2014-11-19 15:24:08 -05:00
parent b67fb73fb4
commit a717edd12e

View file

@ -92,7 +92,7 @@ void ExtractBasename(const char *filename, char *buf, size_t bufSz) {
size_t len = strlen(filename);
const char *end = filename + len;
const char *ext = end;
const char *base = filename;
const char *base = NULL;
while(--end != filename && !base) {
if(*end == '.') {
ext = end;