diff options
author | Tillmann Karras <tilkax@gmail.com> | 2014-02-12 09:39:45 +0100 |
---|---|---|
committer | Tillmann Karras <tilkax@gmail.com> | 2014-02-12 09:39:45 +0100 |
commit | fcb41e5fa0be6e19893e6ee59d7389824e5337a3 (patch) | |
tree | 962308ef103713e414991b0fe4c4ce072da13c9f /src | |
parent | 92349f2d5c008407a87f7c89824a3c413bb5170d (diff) |
ui_util: close history file after reading it
Found with cppcheck.
Diffstat (limited to 'src')
-rw-r--r-- | src/ui_util.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui_util.c b/src/ui_util.c index 4245286..df9624f 100644 --- a/src/ui_util.c +++ b/src/ui_util.c @@ -676,6 +676,7 @@ void ui_cmdhist_init(const char *file) { if(g_utf8_validate(buf, -1, NULL)) ui_cmdhist_add(buf); } + fclose(f); } } |