diff options
author | Lars Henriksen <LarsHenriksen@get2net.dk> | 2017-09-04 09:17:14 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2017-09-04 16:34:19 +0200 |
commit | 3095bf42141723ebbfacb047aaa90c5b1b433420 (patch) | |
tree | 56079ee0ba5e6f8ad4185aabd9faaebba738c480 /src/mem.c | |
parent | 2e584f03e6242887984c7b5e7cfe77935017e8f5 (diff) | |
download | calcurse-3095bf42141723ebbfacb047aaa90c5b1b433420.tar.gz calcurse-3095bf42141723ebbfacb047aaa90c5b1b433420.zip |
Add missing string initialization
When introducing the fmt_day_heading() function in commit d56cc7a (Make
heading in appointments panel configurable, 2017-08-19), we forgot to
initialize the dynamic string. This resulted in calling mem_free() with
a garbage pointer, potentially resulting in a segmentation fault. Fix
this by calling string_init() before using the string.
Signed-off-by: Lars Henriksen <LarsHenriksen@get2net.dk>
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src/mem.c')
0 files changed, 0 insertions, 0 deletions