From f4645cf6b11a2ab30b6ae936e54b222f2d7a72e6 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sun, 11 Aug 2019 16:21:55 +0200 Subject: [PATCH] Improve model name detection: Token cannot be a model name if it contains '=' --- src/frontend/inpcom.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 14e850ef6..33d09c823 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -1892,6 +1892,9 @@ static int is_a_modelname(const char *s) { char *st; double testval; + /* token containing '=' is not a model name */ + if (strchr(s, '=')) + return FALSE; /* first character of model name is character from alphabet */ if (isalpha_c(s[0])) return TRUE;