From 3ace1601ac5b5d87d6bfd8aa0afe0c75858b6990 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Thu, 28 Feb 2008 17:09:47 +0100 Subject: [PATCH] Only set DEBUGLEVEL to 0 in libnetapi when not set already. Guenther --- source/lib/netapi/netapi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/lib/netapi/netapi.c b/source/lib/netapi/netapi.c index 47b3ba93cf..fb091f6e0b 100644 --- a/source/lib/netapi/netapi.c +++ b/source/lib/netapi/netapi.c @@ -50,7 +50,9 @@ NET_API_STATUS libnetapi_init(struct libnetapi_ctx **context) return W_ERROR_V(WERR_NOMEM); } - DEBUGLEVEL = 0; + if (!DEBUGLEVEL) { + DEBUGLEVEL = 0; + } setup_logging("libnetapi", true); dbf = x_stderr; -- 2.34.1