diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2004-03-20 22:15:40 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2004-03-20 22:15:40 +0000 |
commit | 19bb86e2ad7eeb96eba8711e8d783558685e27ee (patch) | |
tree | c5255ef5f9000d67de27426fb316b1155b9095fe /render/box.c | |
parent | cd6ce1339ff4e259aaef71eb160b14081fed312b (diff) | |
download | netsurf-19bb86e2ad7eeb96eba8711e8d783558685e27ee.tar.gz netsurf-19bb86e2ad7eeb96eba8711e8d783558685e27ee.tar.bz2 |
[project @ 2004-03-20 22:15:40 by jmb]
Fix potential crash caused by <input type="button">
svn path=/import/netsurf/; revision=639
Diffstat (limited to 'render/box.c')
-rw-r--r-- | render/box.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/render/box.c b/render/box.c index e1dbdcce8..94419c4f8 100644 --- a/render/box.c +++ b/render/box.c @@ -1115,6 +1115,9 @@ struct result box_input(xmlNode *n, struct status *status, if ((s = (char *) xmlGetProp(n, (const xmlChar *) "value"))) { inline_box->text = s; } + else { + inline_box->text = xstrdup("Button"); + } inline_box->length = strlen(inline_box->text); inline_box->font = font_open(status->content->data.html.fonts, style); box_add_child(inline_container, inline_box); |