aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/StyleContext.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/StyleContext.h b/src/StyleContext.h
index 75e187859..a670867ce 100644
--- a/src/StyleContext.h
+++ b/src/StyleContext.h
@@ -116,6 +116,8 @@ public:
if (ch != static_cast<unsigned char>(*s))
return false;
s++;
+ if (!*s)
+ return true;
if (chNext != static_cast<unsigned char>(*s))
return false;
s++;