diff options
author | Michael Pavone <pavone@retrodev.com> | 2018-06-29 09:33:23 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2018-06-29 09:33:23 -0700 |
commit | aad75c86365b71d625a730a0d42c6537a9016feb (patch) | |
tree | d365c39a527093019d356f03765788c40bf89953 /util.c | |
parent | 5f1a3e5c10bd84d5049b1a8a56c5aace468761cb (diff) |
Fix some issues identified by cppcheck
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -255,8 +255,8 @@ int utf8_codepoint(const char **text) if (initial < 0x80) { return initial; } - int base; - uint8_t extended_bytes; + int base = 0; + uint8_t extended_bytes = 0; if ((initial & 0xE0) == 0xC0) { base = 0x80; initial &= 0x1F; @@ -873,6 +873,7 @@ char *read_bundled_file(char *name, uint32_t *sizeret) } else { ret = NULL; } + fclose(f); return ret; } |