summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index 8079bab..2cffcfb 100644
--- a/src/util.c
+++ b/src/util.c
@@ -170,7 +170,7 @@ lilv_expand(const char* path)
if (*s == '$') {
// Hit $ (variable reference, e.g. $VAR_NAME)
for (const char* t = s + 1; ; ++t) {
- if (!*t || !(isupper(*t) || isdigit(*t) || *t == '_')) {
+ if (!*t || !isupper(*t) || !isdigit(*t) || *t != '_') {
// Append preceding chunk
out = strappend(out, &len, start, s - start);