summaryrefslogtreecommitdiff
path: root/src/context.c
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2012-08-06 20:04:22 +0300
committerRan Benita <ran234@gmail.com>2012-08-07 11:09:42 +0300
commitf2ecd6650aff7d8b628845c1284c7e671c01ea67 (patch)
treee3d3288d0d6d4242a860177de3dfde4b13efedfc /src/context.c
parent18048cb7bf49468a9211e107c000ef255db2f94f (diff)
downloadxorg-lib-libxkbcommon-f2ecd6650aff7d8b628845c1284c7e671c01ea67.tar.gz
log: allow to resore default log function
Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'src/context.c')
-rw-r--r--src/context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/context.c b/src/context.c
index e373d1a..81c008b 100644
--- a/src/context.c
+++ b/src/context.c
@@ -334,7 +334,7 @@ xkb_set_log_fn(struct xkb_context *ctx,
void (*log_fn)(struct xkb_context *ctx, int priority,
const char *fmt, va_list args))
{
- ctx->log_fn = log_fn;
+ ctx->log_fn = (log_fn ? log_fn : default_log_fn);
}
XKB_EXPORT int