diff options
author | Daniel Stone <daniel@fooishbar.org> | 2006-04-07 15:53:21 +0000 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2006-04-07 15:53:21 +0000 |
commit | 843146cfbaef234e13df9a62b6f0232a5efdf7f0 (patch) | |
tree | 4730749fc8580cc562604f3c7fb6f79ae513593c /hw/xfree86/utils/xorgcfg/keyboard-cfg.c | |
parent | 5dacc822327689c0f096093756473c96fba67d76 (diff) |
Coverity #1216: Fix double-close of file on error.
Diffstat (limited to 'hw/xfree86/utils/xorgcfg/keyboard-cfg.c')
-rw-r--r-- | hw/xfree86/utils/xorgcfg/keyboard-cfg.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/xfree86/utils/xorgcfg/keyboard-cfg.c b/hw/xfree86/utils/xorgcfg/keyboard-cfg.c index 334070d4e..05b1aeb09 100644 --- a/hw/xfree86/utils/xorgcfg/keyboard-cfg.c +++ b/hw/xfree86/utils/xorgcfg/keyboard-cfg.c @@ -1013,7 +1013,6 @@ KeyboardRulesCallback(Widget w, XtPointer user_data, XtPointer call_data) } if (!XkbRF_LoadRules(fp, xkb_rules->list)) { - fclose(fp); fprintf(stderr, "Can't load rules\n"); } fclose(fp); |