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>
This commit is contained in:
parent
32dcdff20b
commit
da6334cf38
@ -177,7 +177,7 @@ static void update_rept(struct rpt **rpt, const long start)
|
|||||||
{
|
{
|
||||||
int newtype, newfreq;
|
int newtype, newfreq;
|
||||||
time_t newuntil;
|
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_prefix = _("Enter the new repetition type:");
|
||||||
const char *msg_rpt_daily = _("(d)aily");
|
const char *msg_rpt_daily = _("(d)aily");
|
||||||
const char *msg_rpt_weekly = _("(w)eekly");
|
const char *msg_rpt_weekly = _("(w)eekly");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user