]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add MOVE_OWNERSHIP() macro for transferring pointer ownership
authorOndřej Surý <ondrej@isc.org>
Fri, 20 Mar 2026 01:15:17 +0000 (02:15 +0100)
committerOndřej Surý <ondrej@isc.org>
Mon, 23 Mar 2026 11:05:30 +0000 (12:05 +0100)
commit8feefb9874a1e05da863c312a78bb68981160b2a
treeba54e40f5cbd8346271a760573a8d3e18adf0332
parent208f1fcfec7fd575cfc26dff49e22a39b864748a
Add MOVE_OWNERSHIP() macro for transferring pointer ownership

A helper macro that returns the current value of a pointer and sets
it to NULL in one expression, useful for transferring ownership in
designated initializers.

(cherry picked from commit 0f3be0beb8e461428466172d4b7b800933038adb)
lib/isc/include/isc/util.h