chiark / gitweb /
log: assign the realm to a variable first in log_full_errno_realm()
authorLennart Poettering <lennart@poettering.net>
Thu, 11 Jan 2018 12:15:19 +0000 (13:15 +0100)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:50:07 +0000 (07:50 +0200)
commit4205611a9b7e0e38122cb02b58261c1b395daab3
treeb86e8a07c339eb728c76bceeef0c4b9c33e68bd5
parent4b7bffd68186d4507df383502fae9c80868dda8d
log: assign the realm to a variable first in log_full_errno_realm()

Let's avoid duplicate evaluation (which might have side-effects) and
assign the realm to an internal variable first, as we need it twice.
src/basic/log.h