mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-22 14:31:20 +03:00
initialise event struct correctly to avoid compiler warning
This commit is contained in:
parent
5a40e94df6
commit
cde300133e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user