diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2007-03-18 20:19:13 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2007-03-18 20:19:13 +0000 |
commit | 947ab0dcd2bc3840da5db789862a75510c48106f (patch) | |
tree | 7ed16ddb91f3a6d7b70401648732306fdad99b13 /content/content.c | |
parent | 703b5fea73f9bbdb4f41aebcd75f71d32d340a2d (diff) | |
download | netsurf-947ab0dcd2bc3840da5db789862a75510c48106f.tar.gz netsurf-947ab0dcd2bc3840da5db789862a75510c48106f.tar.bz2 |
Ensure content structures are zero initialised.
Make css_destroy check that the stylesheet pointer exists (content
destructors may be called whilst the content is still loading - e.g. if
the content type isn't permissable in the context it was loaded from).
Fixes 1627413, 1580980.
svn path=/trunk/netsurf/; revision=3212
Diffstat (limited to 'content/content.c')
-rw-r--r-- | content/content.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/content/content.c b/content/content.c index f56d842ce..5b7d783e3 100644 --- a/content/content.c +++ b/content/content.c @@ -348,7 +348,7 @@ struct content * content_create(const char *url) struct content *c; struct content_user *user_sentinel; - c = talloc(0, struct content); + c = talloc_zero(0, struct content); if (!c) return 0; |