fs-util/rm-rf: improve remove+free destructors to take and return NULL
authorLennart Poettering <lennart@poettering.net>
Fri, 15 Jan 2021 21:13:46 +0000 (22:13 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 19 Jan 2021 17:29:59 +0000 (18:29 +0100)
commit63ec26a4bfdc6376119bba4378d9f2463858f376
tree3afccead1148e989b74249fde6f90121469a7da6
parentc038ce4606f93d9e58147f87703125270fb744e2
fs-util/rm-rf: improve remove+free destructors to take and return NULL

Let#s make these helpers useful even without _cleanup_ logic, to destory
arbitary fields: make them OK wiht a NULL pointer as input, and always
return one as output.
src/basic/fs-util.h
src/basic/rm-rf.h