ctdb-common: Return script_list for zero scripts
authorAmitay Isaacs <amitay@gmail.com>
Thu, 10 May 2018 02:43:24 +0000 (12:43 +1000)
committerMartin Schwenke <martins@samba.org>
Tue, 5 Jun 2018 20:34:19 +0000 (22:34 +0200)
commita3591ed5de145df54cf29027273416876de1b774
tree48f61c2b221bf81a19bb4a46331cdfebdecccef0
parent4d27c11ce26bf835448862b6d901056125b5414f
ctdb-common: Return script_list for zero scripts

When an event script directory is empty, do not return script_list as
NULL.  Instead return empty script_list with zero scripts.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/common/run_event.c
ctdb/tests/eventd/eventd_001.sh
ctdb/tests/eventd/eventd_002.sh