aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/script
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-06-05 22:12:09 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-06-08 16:05:05 +0300
commit11047ff67adb53ccd72bb9ef06dc8bae9e52e4b3 (patch)
treea0f207b150f2094eb88aaa0cd50d1f575ef652d7 /libbuild2/script
parentb601cf3e41b17d66c412dac7be9e361d65898c7b (diff)
Various minor fixes
Diffstat (limited to 'libbuild2/script')
-rw-r--r--libbuild2/script/script.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbuild2/script/script.cxx b/libbuild2/script/script.cxx
index eb63e53..c9b3a5e 100644
--- a/libbuild2/script/script.cxx
+++ b/libbuild2/script/script.cxx
@@ -163,7 +163,7 @@ namespace build2
//
if (t.type == token_type::word &&
qtok != '\'' &&
- prev_tt != token_type::dollar)
+ (!prev_tt || *prev_tt != token_type::dollar))
{
for (char c: t.value)
{