summaryrefslogtreecommitdiff
path: root/libusb/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'libusb/core.c')
-rw-r--r--libusb/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libusb/core.c b/libusb/core.c
index 23ab43b..a0248d1 100644
--- a/libusb/core.c
+++ b/libusb/core.c
@@ -2448,8 +2448,8 @@ int API_EXPORTED libusb_init_context(libusb_context **ctx, const struct libusb_i
return LIBUSB_ERROR_NO_MEM;
}
- _ctx->debug = LIBUSB_LOG_LEVEL_NONE;
#if defined(ENABLE_LOGGING) && !defined(ENABLE_DEBUG_LOGGING)
+ _ctx->debug = LIBUSB_LOG_LEVEL_NONE;
if (getenv("LIBUSB_DEBUG")) {
_ctx->debug = get_env_debug_level();
_ctx->debug_fixed = 1;