Message ID | 20211207064720.AF551F8032B@alsa1.perex.cz |
---|---|
State | New |
Headers | show |
Series | Add support for some non-alphanumeric variable names in the math expr evaluator | expand |
diff --git a/src/confeval.c b/src/confeval.c index a971bf38..7330d67e 100644 --- a/src/confeval.c +++ b/src/confeval.c @@ -190,7 +190,7 @@ int _snd_eval_string(snd_config_t **dst, const char *s, } else { e = s + 1; while (*e) { - if (!isalnum(*e)) + if (!isalnum(*e) && (*e != '_')) break; e++; }