summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFran├žois Revel <mmu_man@netsurf-browser.org>2011-01-31 23:54:08 +0000
committerFran├žois Revel <mmu_man@netsurf-browser.org>2011-01-31 23:54:08 +0000
commitaef30acb9a7c7c20e7b7e4dbf827f054ab942c5a (patch)
tree774c8de1b9d4527777aa2e313294b49cb6283a99
parent3668e20bded8beb0ae5ce52e04f3f74f15f848a5 (diff)
downloadlibcss-aef30acb9a7c7c20e7b7e4dbf827f054ab942c5a.tar.gz
libcss-aef30acb9a7c7c20e7b7e4dbf827f054ab942c5a.tar.bz2
C89.
svn path=/trunk/libcss/; revision=11573
-rw-r--r--src/parse/language.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/parse/language.c b/src/parse/language.c
index 1f1aeb5..e1146e8 100644
--- a/src/parse/language.c
+++ b/src/parse/language.c
@@ -1033,13 +1033,14 @@ css_error parseNth(css_language *c,
had_sign = true;
if (len - (++consumed) > 0) {
+ size_t bstart;
/* Reject additional sign */
if (data[consumed] == '-' ||
data[consumed] == '+')
return CSS_INVALID;
/* 2n-b */
- size_t bstart = consumed;
+ bstart = consumed;
b = css__number_from_string(
(const uint8_t *) data + bstart,