diff options
author | Vlad Glagolev <scm@vaygr.net> | 2016-10-12 15:57:12 -0400 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2016-10-13 06:44:26 +0200 |
commit | da6334cf385ff064a8296e8c0d0e080fa2014eaa (patch) | |
tree | d253ae5a9f9d932c191ea8b904c6d86165ed5edd /src | |
parent | 32dcdff20bb81aca94311b09f06f029226fff331 (diff) | |
download | calcurse-da6334cf385ff064a8296e8c0d0e080fa2014eaa.zip |
Prevent free-before-init of timstr
Fixes a crash when editing the repetition of an appointment and passing
an empty repetition value.
Signed-off-by: Vlad Glagolev <scm@vaygr.net>
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/ui-day.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui-day.c b/src/ui-day.c index d7112af..64321a3 100644 --- a/src/ui-day.c +++ b/src/ui-day.c @@ -177,7 +177,7 @@ static void update_rept(struct rpt **rpt, const long start) { int newtype, newfreq; time_t newuntil; - char *freqstr = NULL, *timstr, *outstr; + char *freqstr = NULL, *timstr = NULL, *outstr; const char *msg_rpt_prefix = _("Enter the new repetition type:"); const char *msg_rpt_daily = _("(d)aily"); const char *msg_rpt_weekly = _("(w)eekly"); |