Recognize arrays as constant links

This commit is contained in:
Andrew Johnson
2016-05-24 12:01:38 +02:00
parent 08b7802009
commit 1f726c8760

View File

@@ -2330,6 +2330,12 @@ long dbParseLink(const char *str, short ftype, dbLinkInfo *pinfo)
return 0;
}
/* Link may be an array constant */
if (pstr[0] == '[' && pstr[len-1] == ']' && strchr(pstr, ',')) {
pinfo->ltype = CONSTANT;
return 0;
}
pinfo->ltype = PV_LINK;
pstr = strchr(pstr, ' '); /* find start of link modifiers (can't be seperated by tabs) */
if (pstr) {