diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-01-19 11:07:47 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-01-19 11:07:47 +0000 |
commit | b1b77a05acb6e4b0441278c0a4240c11b5a26a02 (patch) | |
tree | 206feae3f7dd26a7de0b12b15e979689440c3d39 /src/parse/parse.c | |
parent | ec53465c830b136ff4012c5958b57faee1956c37 (diff) | |
download | libcss-b1b77a05acb6e4b0441278c0a4240c11b5a26a02.tar.gz libcss-b1b77a05acb6e4b0441278c0a4240c11b5a26a02.tar.bz2 |
Intern zero-length data, too. Otherwise, we'll explode later on.
Fixes content: "", for example.
svn path=/trunk/libcss/; revision=6147
Diffstat (limited to 'src/parse/parse.c')
-rw-r--r-- | src/parse/parse.c | 3 |
1 files changed, 1 insertions, 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; |