summaryrefslogtreecommitdiff
path: root/xkb/ddxLoad.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2008-05-13 16:39:30 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2008-05-13 16:39:30 -0700
commit7cdc19b29d93bf15cecfd6b69e269fab2501bca0 (patch)
treeedbe5aff72270cf6d76f16da843764085f06db93 /xkb/ddxLoad.c
parented65e8b4f02a6da7f1c5d85984a9ccf6a94d0181 (diff)
When XKB fails to open rules file, log the file name, not the NULL file pointer
Diffstat (limited to 'xkb/ddxLoad.c')
-rw-r--r--xkb/ddxLoad.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xkb/ddxLoad.c b/xkb/ddxLoad.c
index 1fb097987..842c146f8 100644
--- a/xkb/ddxLoad.c
+++ b/xkb/ddxLoad.c
@@ -401,7 +401,7 @@ XkbRF_RulesPtr rules;
file = fopen(buf, "r");
if (!file) {
- LogMessage(X_ERROR, "XKB: Couldn't open rules file %s\n", file);
+ LogMessage(X_ERROR, "XKB: Couldn't open rules file %s\n", buf);
return False;
}