diff options
Diffstat (limited to 'content/hlcache.c')
-rw-r--r-- | content/hlcache.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/content/hlcache.c b/content/hlcache.c index 249275e92..2242b73af 100644 --- a/content/hlcache.c +++ b/content/hlcache.c @@ -182,12 +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; nserror error = NSERROR_OK; + hlcache_event event = { + .type = msg, + }; - memset(&event, 0, sizeof(event)); - - event.type = msg; if (data != NULL) { event.data = *data; } |