about summary refs log tree commit diff
path: root/src/libexpr/parser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libexpr/parser.cc')
-rw-r--r--src/libexpr/parser.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/parser.cc b/src/libexpr/parser.cc
index 7adbcb618e8c..9b3e9041dfc1 100644
--- a/src/libexpr/parser.cc
+++ b/src/libexpr/parser.cc
@@ -75,7 +75,7 @@ Expr unescapeStr(const char * s)
 {
     string t;
     char c;
-    while (c = *s++) {
+    while ((c = *s++)) {
         if (c == '\\') {
             assert(*s);
             c = *s++;