summaryrefslogtreecommitdiff
path: root/res/res_calendar_ews.c
diff options
context:
space:
mode:
Diffstat (limited to 'res/res_calendar_ews.c')
-rw-r--r--res/res_calendar_ews.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_calendar_ews.c b/res/res_calendar_ews.c
index d33f4be4f..7deca9c97 100644
--- a/res/res_calendar_ews.c
+++ b/res/res_calendar_ews.c
@@ -233,7 +233,7 @@ static int startelm(void *userdata, int parent, const char *nspace, const char *
/* Event UID */
if (ctx->op == XML_OP_FIND) {
struct calendar_id *id;
- if (!(id = ast_calloc(1, sizeof(id)))) {
+ if (!(id = ast_calloc(1, sizeof(*id)))) {
return NE_XML_ABORT;
}
if (!(id->id = ast_str_create(256))) {