From 4a014fecde6a4f38c99b820297df65da4555137c Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 28 Aug 2017 11:52:54 +0100 Subject: hlcache content callback: Use designated initialiser for hlcache_event. --- content/hlcache.c | 7 +++---- 1 file 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; } -- cgit v1.2.3