hlcache content callback: Use designated initialiser for hlcache_event.

This commit is contained in:
Michael Drake 2017-08-28 11:52:54 +01:00
parent 7ba93407ad
commit 4a014fecde
1 changed files with 3 additions and 4 deletions

View File

@ -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;
}