This commit is contained in:
twinaphex 2017-11-08 17:37:16 +01:00
parent e7188d9444
commit 0703615bf5

View File

@ -330,9 +330,8 @@ RFILE *filestream_open(const char *path, unsigned mode, ssize_t len)
{
const char *ld = (const char*)strrchr(path, '.');
if (ld) {
if (ld)
stream->ext = strdup(ld + 1);
}
}
filestream_set_size(stream);