Never store an element if there is no callback function specified.
Alle Prüfungen waren erfolgreich
The build was successful.

Dieser Commit ist enthalten in:
2019-03-24 09:01:38 +01:00
Ursprung 731706c1a3
Commit 9438407ebf

Datei anzeigen

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