diff options
author | Vincent Sanders <vince@kyllikki.org> | 2017-08-27 16:01:58 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2017-08-27 16:01:58 +0100 |
commit | cde300133e95a8db0a925879f2c9d940f2bbebdc (patch) | |
tree | 1434b7ea6a12a0d771d7a16e6b98413f6749fadf /content/hlcache.c | |
parent | 5a40e94df627fd913e800f7a86f6d2e5a1f5b870 (diff) | |
download | netsurf-cde300133e95a8db0a925879f2c9d940f2bbebdc.tar.gz |
initialise event struct correctly to avoid compiler warning
Diffstat (limited to 'content/hlcache.c')
-rw-r--r-- | content/hlcache.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/content/hlcache.c b/content/hlcache.c index 38a83eae4..249275e92 100644 --- a/content/hlcache.c +++ b/content/hlcache.c @@ -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; |