[gtk+] cssparser: Don't detect /*/ as a comment
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] cssparser: Don't detect /*/ as a comment
- Date: Wed, 28 Nov 2012 20:12:00 +0000 (UTC)
commit 7f3595a6bea388e842914471032e10a8ff775ffb
Author: Marcus KraÃmann <marcus krassmann gmail com>
Date: Wed Nov 28 21:09:37 2012 +0100
cssparser: Don't detect /*/ as a comment
gtk/gtkcssparser.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcssparser.c b/gtk/gtkcssparser.c
index d00b525..ab38fc9 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");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]