]> git.ipfire.org Git - thirdparty/strongswan.git/commit
array: RFC: Another approach to fix the remove_at() issue array-remove-at-fix
authorTobias Brunner <tobias@strongswan.org>
Mon, 1 Sep 2014 08:22:39 +0000 (10:22 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 1 Sep 2014 08:22:39 +0000 (10:22 +0200)
commit625b311ed51a126ff3c69eb1acbf7010601d6d5e
tree82e481535278ac3a61815d5dcc1bd2fe997b19e1
parenta8a8c153f17f8dd706955703ec79d193c77730f9
array: RFC: Another approach to fix the remove_at() issue

This is more efficient as it only requires a memcpy if remove_at is
actually called.  But is could be problematic if the passed pointer is
assigned to another variable or otherwise passed around before remove_at
is called.
src/libstrongswan/collections/array.c