]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/mount.c
mount: use free_and_strdup() over plain strdup()
authorLennart Poettering <lennart@poettering.net>
Wed, 28 Nov 2018 13:40:56 +0000 (14:40 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 7 Dec 2018 16:34:29 +0000 (17:34 +0100)
commite10fe04266956be492460eea3df668b0634de25a
tree611a469c133daac74ec5ae68d4c021400a06f966
parent60b8c203f81fd02ec62ba8a0f6daecbb969df3a8
mount: use free_and_strdup() over plain strdup()

Let's initialize two fields with free_and_strdup() rather than directly
with strdup(). The fields should not be initialized so far, but it's
still nicer to be prepared for futzre code changes and always free
what's stored before replacing it.
src/core/mount.c