Skip to content

Commit

Permalink
src/libicalvcard/vcardtime.c - init the tm struct
Browse files Browse the repository at this point in the history
  • Loading branch information
winterz authored and ksmurchison committed Apr 22, 2024
1 parent b64bea4 commit 55f1060
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libicalvcard/vcardtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ vcardtimetype vcardtime_current_utc_time(void)
struct tm t;
vcardtimetype tt;

memset(&t, 0, sizeof(struct tm));
if (!icalgmtime_r(&now, &t)) {
return vcardtime_null_datetime();
}
Expand Down

0 comments on commit 55f1060

Please sign in to comment.