diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-10-19 14:14:55 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-10-19 14:14:55 +0200 |
commit | 085e7b0b6cc882b31c11b6d6ea7834235588e1ed (patch) | |
tree | 6ef59d38144eb720a9f5b60959880eda3b8712d2 | |
parent | 7f826373dbea1d6421abcde6046ec53853ecaf6f (diff) | |
download | samba-085e7b0b6cc882b31c11b6d6ea7834235588e1ed.tar.gz samba-085e7b0b6cc882b31c11b6d6ea7834235588e1ed.tar.bz2 samba-085e7b0b6cc882b31c11b6d6ea7834235588e1ed.zip |
Fix segfault when using DEBUG() in the merged build.
-rw-r--r-- | lib/util/debug.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/util/debug.c b/lib/util/debug.c index b6edb908c7..faec52aec8 100644 --- a/lib/util/debug.c +++ b/lib/util/debug.c @@ -33,7 +33,10 @@ */ int _debug_level = 0; _PUBLIC_ int *debug_level = &_debug_level; -int *DEBUGLEVEL_CLASS = NULL; /* For samba 3 */ +static int debug_all_class_hack = 1; +int *DEBUGLEVEL_CLASS = &debug_all_class_hack; /* For samba 3 */ +static bool debug_all_class_isset_hack = true; +bool *DEBUGLEVEL_CLASS_ISSET = &debug_all_class_isset_hack; /* For samba 3 */ /* the registered mutex handlers */ static struct { |