summaryrefslogtreecommitdiff
path: root/src/select/select.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2010-04-29 21:56:28 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2010-04-29 21:56:28 +0000
commite86173f4bf6e029af6ea0f1348c6b934a1b488f8 (patch)
tree5d119069fe6b0dec8c9848110f9fbd64202e5e93 /src/select/select.c
parent9e9c0cc7ffae7707734f99fe6693b03d2a78d28d (diff)
downloadlibcss-e86173f4bf6e029af6ea0f1348c6b934a1b488f8.tar.gz
libcss-e86173f4bf6e029af6ea0f1348c6b934a1b488f8.tar.bz2
Really fix hint leaks. Hint data ownership is passed to libcss.
Ensure that hint is initialised before asking client to populate it (so as to guard against broken clients) svn path=/trunk/libcss/; revision=10520
Diffstat (limited to 'src/select/select.c')
-rw-r--r--src/select/select.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/select/select.c b/src/select/select.c
index abf4099..b2820c8 100644
--- a/src/select/select.c
+++ b/src/select/select.c
@@ -423,6 +423,9 @@ css_error set_hint(css_select_state *state, uint32_t i)
css_hint hint;
css_error error;
+ /* Initialise hint */
+ memset(&hint, 0, sizeof(css_hint));
+
/* Retrieve this property's hint from the client */
error = state->handler->node_presentational_hint(state->pw,
state->node, i, &hint);