From 53a7d259238a655248fd77455606b5863f0c4e76 Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Mon, 8 Jun 2020 15:05:22 +0200 Subject: [PATCH] allow constant links with numeric 1 element arrays like [42] --- modules/database/src/ioc/dbStatic/dbStaticLib.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/database/src/ioc/dbStatic/dbStaticLib.c b/modules/database/src/ioc/dbStatic/dbStaticLib.c index 539ea3aa4..ceb4ea3de 100644 --- a/modules/database/src/ioc/dbStatic/dbStaticLib.c +++ b/modules/database/src/ioc/dbStatic/dbStaticLib.c @@ -2330,8 +2330,7 @@ long dbParseLink(const char *str, short ftype, dbLinkInfo *pinfo) } /* Link may be an array constant */ - if (pstr[0] == '[' && pstr[len-1] == ']' && - (strchr(pstr, ',') || strchr(pstr, '"'))) { + if (pstr[0] == '[' && pstr[len-1] == ']') { pinfo->ltype = CONSTANT; return 0; }