diff options
author | James Bursa <james@netsurf-browser.org> | 2005-04-09 13:25:05 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2005-04-09 13:25:05 +0000 |
commit | f9d5c0f7c8b9a0664f1ca2cd1feb50b8230e02a7 (patch) | |
tree | 41ab035fc24e07999055d7a82e48c3dc2cdb2253 | |
parent | b7d0f95486412a35f875956ce23dfc1984491119 (diff) | |
download | netsurf-f9d5c0f7c8b9a0664f1ca2cd1feb50b8230e02a7.tar.gz netsurf-f9d5c0f7c8b9a0664f1ca2cd1feb50b8230e02a7.tar.bz2 |
[project @ 2005-04-09 13:25:05 by bursa]
Fix iframe related crash.
svn path=/import/netsurf/; revision=1613
-rw-r--r-- | render/box_construct.c | 10 |
1 files changed, 8 insertions, 2 deletions
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 <assert.h> #include <ctype.h> #include <stdio.h> @@ -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"))) { |