1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

dtcm: set default calendar version to avoid segfault.

This commit is contained in:
Liang Chang 2022-03-04 11:44:02 +00:00
parent 3180a9e02c
commit c051e6d3bc

View file

@ -2117,7 +2117,7 @@ open_user_calendar(Calendar *c, Boolean retry)
CSA_attribute_value val;
Boolean viewother;
c->general->version = 0;
c->general->version = c->my_cal_version = DATAVER_ARCHIVE;
if ((loc = cm_target2location(c->calname)) == NULL) {
error_noloc(c, c->calname);
return False;