]> git.ipfire.org Git - thirdparty/git.git/commit
strmap: make callers of strmap_remove() to call it in void context
authorJunio C Hamano <gitster@pobox.com>
Tue, 15 Dec 2020 21:25:36 +0000 (13:25 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 15 Dec 2020 23:30:44 +0000 (15:30 -0800)
commit37e73233c34ceac9f16bd8e7c33ae4c8a4157b1c
tree9a70a31b2d306faf3b271768c36398723e1f877c
parent449a900969d0f060d054e5a13084bed318da3a31
strmap: make callers of strmap_remove() to call it in void context

Two "static inline" functions, both of which return void, call
strmap_remove() and tries to return the value it returns as their
return value, which is just bogus, as strmap_remove() returns void
itself.  Call it in the void context and fall-thru the control to
the end instead.

Reported-by: Randall S. Becker <rsbecker@nexbridge.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
strmap.h