[uim-commit] r127 - trunk/uim
yamaken@freedesktop.org
yamaken@freedesktop.org
Wed Jan 5 06:29:06 PST 2005
Author: yamaken
Date: 2005-01-05 06:29:03 -0800 (Wed, 05 Jan 2005)
New Revision: 127
Modified:
trunk/uim/uim.c
Log:
* uim/uim.c
- (load_conf): Restore file existence check to suppress "No such
file or directory" error message. Thanks UTUMI Hirosi for
reporting
Modified: trunk/uim/uim.c
===================================================================
--- trunk/uim/uim.c 2005-01-05 11:37:32 UTC (rev 126)
+++ trunk/uim/uim.c 2005-01-05 14:29:03 UTC (rev 127)
@@ -506,6 +506,12 @@
verbose = uim_scm_get_verbose_level();
fn = getenv("LIBUIM_USER_SCM_FILE");
+ fp = fopen(fn, "r");
+ if (!fp) {
+ return -1;
+ }
+ fclose(fp);
+
if (!fn) {
pw = getpwuid(getuid());
fn = malloc(strlen(pw->pw_dir) + sizeof("/.uim"));
More information about the Uim-commit
mailing list