summaryrefslogtreecommitdiff
path: root/units/initrd-cleanup.service.in
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-05-11 20:09:58 +0200
committerLennart Poettering <lennart@poettering.net>2015-05-11 22:10:36 +0200
commit4b64536ee7fd0438c93d1784824098f826cd642c (patch)
treed976127a01a80146d8dc04fb576063824195b4a8 /units/initrd-cleanup.service.in
parent27023c0ef5701d31ae2a985d986674282d465b0f (diff)
util: optimize free_and_strdup() if NOP
Under the assumption that strcmp() is cheaper than memory allocation, let's avoid the allocation, if the new value is identical to the old.
Diffstat (limited to 'units/initrd-cleanup.service.in')
0 files changed, 0 insertions, 0 deletions