ctdb-daemon: Use a local variable instead of repeating getenv()
authorMartin Schwenke <martin@meltin.net>
Thu, 26 Apr 2018 10:32:30 +0000 (20:32 +1000)
committerMartin Schwenke <martins@samba.org>
Tue, 1 May 2018 11:31:18 +0000 (13:31 +0200)
commit518be6d5a26771040801f76db1279912128f3bc1
treee8e1321dd07ee5cd368a4a55af6030ecaf9100f2
parent7052f87903fc5daaad2e155f345800ee897d19b2
ctdb-daemon: Use a local variable instead of repeating getenv()

Makes the error handling easier and the code more compact.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/server/ctdbd.c