Coverity #1216: Fix double-close of file on error.

This commit is contained in:
Daniel Stone 2006-04-07 15:53:21 +00:00
parent 5dacc82232
commit 843146cfba
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-04-07 Daniel Stone <daniel@freedesktop.org>
* hw/xfree86/utils/xorgcfg/keyboard-cfg.c:
Coverity #1216: Fix double-close of file on error.
2006-04-06 Keith Packard <keithp@keithp.com>
* fb/fbstipple.c: (fbEvenStipple):

View File

@ -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);