Skip to content
Snippets Groups Projects

lib: make map_contains recongize null value

Closed 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

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading