Never store an element if there is no callback function specified.
The build was successful.
Details
The build was successful.
Details
This commit is contained in:
parent
731706c1a3
commit
9438407ebf
|
@ -5150,8 +5150,8 @@ static int ph7_hashmap_filter(ph7_context *pCtx, int nArg, ph7_value **apArg) {
|
|||
}
|
||||
PH7_MemObjRelease(&sResult);
|
||||
} else {
|
||||
/* No available callback,check for empty item */
|
||||
keep = !PH7_MemObjIsEmpty(pValue);
|
||||
/* No available callback */
|
||||
keep = FALSE;
|
||||
}
|
||||
if(keep) {
|
||||
/* Perform the insertion,now the callback returned true */
|
||||
|
|
Loading…
Reference in New Issue