initialise event struct correctly to avoid compiler warning

This commit is contained in:
Vincent Sanders 2017-08-27 16:01:58 +01:00
parent 5a40e94df6
commit cde300133e

View File

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