From 83880dd464a415d3d0efa546b1f0b9887342e809 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 26 Mar 2004 17:11:49 +0000 Subject: 29. XkbWriteRulesProp fails if XkbRulesFile is NULL. Bug #376. (Alan Coopersmith) --- xkb/xkbInit.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xkb/xkbInit.c b/xkb/xkbInit.c index b582845d9..260446eb8 100644 --- a/xkb/xkbInit.c +++ b/xkb/xkbInit.c @@ -1,4 +1,5 @@ /* $Xorg: xkbInit.c,v 1.3 2000/08/17 19:53:47 cpqbld Exp $ */ +/* $XdotOrg$ */ /************************************************************ Copyright (c) 1993 by Silicon Graphics Computer Systems, Inc. @@ -188,6 +189,9 @@ char * pval; if (XkbRulesFile) { strcpy(&pval[out],XkbRulesFile); out+= strlen(XkbRulesFile); + } else { + strcpy(&pval[out],XKB_DFLT_RULES_FILE); + out+= strlen(XKB_DFLT_RULES_FILE); } pval[out++]= '\0'; if (XkbModelUsed) { -- cgit v1.2.3