ctdb-logging: Initialize DEBUGLEVEL before changing the value
authorAmitay Isaacs <amitay@gmail.com>
Fri, 5 May 2017 16:08:50 +0000 (02:08 +1000)
committerKarolin Seeger <kseeger@samba.org>
Tue, 16 May 2017 11:25:31 +0000 (13:25 +0200)
commit3e50a507e87d4fff1b84be14176de14e311b919b
tree4b8f5e3fb3ca192aaa25cdec51e8e73cd4fb2029
parent10b04d77a8369112fb88fe83500918e5aa01b6f7
ctdb-logging: Initialize DEBUGLEVEL before changing the value

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12770

DEBUGLEVEL is defined as a const array reference at compile time.
debug_init() converts that to an allocated array reference at run time.
Since debug_init() is a static function, initialize DEBUGLEVEL via
setup_logging().

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Mon May  8 00:12:25 CEST 2017 on sn-devel-144

(cherry picked from commit af09a733e953072707cde7df0126652e646970f6)

Autobuild-User(v4-6-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-6-test): Tue May 16 13:25:31 CEST 2017 on sn-devel-144
ctdb/common/logging.c