From 7b092af628f545c13fb7dd61c7693b0f845dce13 Mon Sep 17 00:00:00 2001 From: Miciah Dashiel Butler Masters Date: Sun, 12 Feb 2006 04:25:10 +0000 Subject: [PATCH] SEE: document.writeln: always add new line Add the new-line character even if SEE_value_to_unsigned_char returns NULL. --- src/ecmascript/see/document.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ecmascript/see/document.c b/src/ecmascript/see/document.c index 51ee5b50a..8705849b7 100644 --- a/src/ecmascript/see/document.c +++ b/src/ecmascript/see/document.c @@ -217,9 +217,10 @@ js_document_write_do(struct SEE_interpreter *interp, struct SEE_object *self, if (code) { add_to_string(ret, code); mem_free(code); - if (newline) - add_char_to_string(ret, '\n'); } + + if (newline) + add_char_to_string(ret, '\n'); } #ifdef CONFIG_LEDS /* XXX: I don't know about you, but I have *ENOUGH* of those 'Undefined