diff options
author | Marcus Kraßmann <marcus.krassmann@gmail.com> | 2012-11-28 21:09:37 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-11-28 21:11:48 +0100 |
commit | 7f3595a6bea388e842914471032e10a8ff775ffb (patch) | |
tree | 1cff7ebdbc85bbe5e3c98f408d11a7c1072a2226 /gtk/gtkcssparser.c | |
parent | ea415cd3505e6aa6b3c536e557d9293d4d9d264d (diff) | |
download | gtk+-7f3595a6bea388e842914471032e10a8ff775ffb.tar.gz |
cssparser: Don't detect /*/ as a comment
Diffstat (limited to 'gtk/gtkcssparser.c')
-rw-r--r-- | gtk/gtkcssparser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkcssparser.c b/gtk/gtkcssparser.c index d00b5255dd..ab38fc9d93 100644 --- a/gtk/gtkcssparser.c +++ b/gtk/gtkcssparser.c @@ -257,7 +257,7 @@ gtk_css_parser_skip_comment (GtkCssParser *parser) parser->data++; - if (parser->data[-2] == '*') + if (len > 0 && parser->data[-2] == '*') return TRUE; if (parser->data[0] == '*') _gtk_css_parser_error (parser, "'/*' in comment block"); |