From 19bb86e2ad7eeb96eba8711e8d783558685e27ee Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 20 Mar 2004 22:15:40 +0000 Subject: [project @ 2004-03-20 22:15:40 by jmb] Fix potential crash caused by svn path=/import/netsurf/; revision=639 --- render/box.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'render/box.c') 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); -- cgit v1.2.3