summaryrefslogtreecommitdiff
path: root/content/hlcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'content/hlcache.c')
-rw-r--r--content/hlcache.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/content/hlcache.c b/content/hlcache.c
index 38a83eae4..249275e92 100644
--- a/content/hlcache.c
+++ b/content/hlcache.c
@@ -182,9 +182,11 @@ static void hlcache_content_callback(struct content *c, content_msg msg,
const union content_msg_data *data, void *pw)
{
hlcache_handle *handle = pw;
- hlcache_event event = { 0 };
+ hlcache_event event;
nserror error = NSERROR_OK;
+ memset(&event, 0, sizeof(event));
+
event.type = msg;
if (data != NULL) {
event.data = *data;