From 9007cd0287b9dbf18f1459a6bc5d3d9ccba787f4 Mon Sep 17 00:00:00 2001 From: Tim Taubert Date: Mon, 30 Jul 2012 10:02:46 +0100 Subject: [PATCH] Bug 710974 - extraneous commas should be rejected by number list parser. r=dholbert --- content/svg/content/src/SVGNumberList.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/svg/content/src/SVGNumberList.cpp b/content/svg/content/src/SVGNumberList.cpp index b6534318c8e..24aa593f71e 100644 --- a/content/svg/content/src/SVGNumberList.cpp +++ b/content/svg/content/src/SVGNumberList.cpp @@ -63,7 +63,7 @@ SVGNumberList::SetValueFromString(const nsAString& aValue) while (tokenizer.hasMoreTokens()) { CopyUTF16toUTF8(tokenizer.nextToken(), str); // NS_ConvertUTF16toUTF8 const char *token = str.get(); - if (token == '\0') { + if (*token == '\0') { return NS_ERROR_DOM_SYNTAX_ERR; // nothing between commas } char *end;