From b1b77a05acb6e4b0441278c0a4240c11b5a26a02 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 19 Jan 2009 11:07:47 +0000 Subject: Intern zero-length data, too. Otherwise, we'll explode later on. Fixes content: "", for example. svn path=/trunk/libcss/; revision=6147 --- src/parse/parse.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/parse/parse.c b/src/parse/parse.c index c3269f1..ac62f64 100644 --- a/src/parse/parse.c +++ b/src/parse/parse.c @@ -591,8 +591,7 @@ css_error getToken(css_parser *parser, const css_token **token) * All other token types appear after this magic value. */ - if (t->type < CSS_TOKEN_LAST_INTERN && - t->data.data != NULL && t->data.len > 0) { + if (t->type < CSS_TOKEN_LAST_INTERN && t->data.data != NULL) { if (t->type < CSS_TOKEN_LAST_INTERN_LOWER) { uint8_t temp[t->data.len]; bool lower = false; -- cgit v1.2.3