Skip to content

lib: make map_contains recongize null value

Anbang Wen requested to merge anb/knot-resolver:map-null-value into master

Without changing the interface, map_contains is able to tell whether the item exist in map or not.

More about the intension: module stats use map internally, metric with zero value is not being able to retrieve by stats_get since map_contains checks the return value against NULL.

Edited by Anbang Wen

Merge request reports