]> git.ipfire.org Git - thirdparty/systemd.git/commit
mount-util: shorten the loop a bit (#7545)
authorLennart Poettering <lennart@poettering.net>
Wed, 6 Dec 2017 04:19:03 +0000 (05:19 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 6 Dec 2017 04:19:03 +0000 (13:19 +0900)
commit93719c6b0e96dd59e2c1fcb40b5259f055841803
tree159fa4d90ecab710fe3fa9c74e3d64269a120f65
parenta0605ddfcfd0916d382323d53f78550c1151ec6b
mount-util: shorten the loop a bit (#7545)

The loop preparation and part of the loop contents are actually the
same, let's merge this.

Also, it's so much fun tweaking around in the name_to_handle_at() code,
let's do more of it with this patch!

(This also adds two NULL assignments, that aren't strictly necessary.
However, I figured its safer to place them in there, just in case the
for() condition is changed later. After all the freeing of the handle
and the invalidation of the cleanup-controller pointer to it are
otherwise really far away from each other...)
src/basic/mount-util.c