diff options
Diffstat (limited to 'intern/clog/clog.c')
-rw-r--r-- | intern/clog/clog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/clog/clog.c b/intern/clog/clog.c index d26f0545117..7ebd3fba425 100644 --- a/intern/clog/clog.c +++ b/intern/clog/clog.c @@ -472,7 +472,7 @@ void CLG_logf( static void CLG_ctx_output_set(CLogContext *ctx, void *file_handle) { ctx->output_file = file_handle; - ctx->output = fileno(file_handle); + ctx->output = fileno(ctx->output_file); #if defined(__unix__) || defined(__APPLE__) ctx->use_color = isatty(ctx->output); #endif @@ -561,7 +561,7 @@ static void CLG_ctx_free(CLogContext *ctx) * \{ */ /* We could support multiple at once, for now this seems not needed. */ -struct CLogContext *g_ctx = NULL; +static struct CLogContext *g_ctx = NULL; void CLG_init(void) { |