User: Fix 0-size file support in UserFileRead
@@ -15,7 +15,7 @@ uint8_t *UserReadFile(const char *str, uint32_t *size) {
fseek(f, 0, SEEK_SET);
uint8_t *string = malloc(fsize + 1);
- if (fread(string, fsize, 1, f) != 1)
+ if (fsize > 0 && fread(string, fsize, 1, f) != 1)
abort();
fclose(f);
