select兼容旧的label格式。
This commit is contained in:
@@ -2441,9 +2441,18 @@ int Maat_cmd_key_select(Maat_feather_t feather, int label_id, struct Maat_cmd_ke
|
||||
for(i=0;i<data_reply->elements;i++)
|
||||
{
|
||||
result[i].table_name=_maat_strdup(data_reply->element[i]->str);
|
||||
tmp=strchr(result[i].table_name, ',');
|
||||
*tmp='\0';
|
||||
tmp++;
|
||||
tmp=strchr(result[i].table_name, ',');
|
||||
if(tmp!=NULL)
|
||||
{
|
||||
*tmp='\0';
|
||||
tmp++;
|
||||
result[i].rule_id=atoi(tmp);
|
||||
}
|
||||
else// old version compatible
|
||||
{
|
||||
result[i].rule_id=atoi(result[i].table_name);
|
||||
free(result[i].table_name);
|
||||
result[i].table_name=NULL;
|
||||
}
|
||||
}
|
||||
freeReplyObject(data_reply);
|
||||
|
||||
Reference in New Issue
Block a user