Never store an element if there is no callback function specified.
The build was successful. Details

This commit is contained in:
Rafal Kupiec 2019-03-24 09:01:38 +01:00
parent 731706c1a3
commit 9438407ebf
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
1 changed files with 2 additions and 2 deletions

View File

@ -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 */