From f9d5c0f7c8b9a0664f1ca2cd1feb50b8230e02a7 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Sat, 9 Apr 2005 13:25:05 +0000 Subject: [project @ 2005-04-09 13:25:05 by bursa] Fix iframe related crash. svn path=/import/netsurf/; revision=1613 --- render/box_construct.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'render') diff --git a/render/box_construct.c b/render/box_construct.c index 94e24b7b0..9e2bc7bf6 100644 --- a/render/box_construct.c +++ b/render/box_construct.c @@ -11,7 +11,6 @@ * Conversion of XML tree to box tree (implementation). */ -#define _GNU_SOURCE /* for strndup */ #include #include #include @@ -29,7 +28,7 @@ #ifdef riscos #include "netsurf/desktop/gui.h" #endif -/* #define NDEBUG */ +#define NDEBUG #include "netsurf/utils/log.h" #include "netsurf/utils/messages.h" #include "netsurf/utils/talloc.h" @@ -1517,6 +1516,13 @@ bool box_iframe(BOX_SPECIAL_PARAMS) po = talloc(content, struct object_params); if (!po) return false; + po->data = 0; + po->type = 0; + po->codetype = 0; + po->codebase = 0; + po->classid = 0; + po->params = 0; + po->basehref = 0; /* iframe src */ if ((s = (char *) xmlGetProp(n, (const xmlChar *) "src"))) { -- cgit v1.2.3