diff --git a/src/MESA_handle_logger.c b/src/MESA_handle_logger.c index d9b8274..4021a74 100644 --- a/src/MESA_handle_logger.c +++ b/src/MESA_handle_logger.c @@ -224,7 +224,7 @@ int MESA_handle_runtime_log_level_enabled(void *v_handle, const int level) void MESA_handle_runtime_log(void *v_handle, int level, const char *module, const char *fmt, ...) { - struct log_handle_t *handle = (struct log_handle_t *)handle; + struct log_handle_t *handle = (struct log_handle_t *)v_handle; if(handle == NULL || handle->runtime_log_file == NULL)return; if(handle->zc == NULL)return;