Recognize arrays as constant links
This commit is contained in:
1 parent
08b7802009
commit
1f726c8760
1 file changed
+6
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user