aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-09-18 16:57:39 +0000
committerRoy Marples <roy@marples.name>2007-09-18 16:57:39 +0000
commit1996a1e032970beeea690dff8480f8007539b968 (patch)
tree953ce6ec8c48b66bfc70ffdff619fd95fa7c10bf /src
parent5ba4ad52e20de57509917494d22e7f43fb7b324b (diff)
Hide errors caused by old splash plugin for the time being
Diffstat (limited to 'src')
-rw-r--r--src/librc-misc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/librc-misc.c b/src/librc-misc.c
index 4c40cfbf..87949059 100644
--- a/src/librc-misc.c
+++ b/src/librc-misc.c
@@ -319,8 +319,11 @@ char **rc_get_config (const char *file)
char *entry;
char *newline;
+ if (! file)
+ return (NULL);
+
if (! (fp = fopen (file, "r"))) {
- ewarn ("load_config_file `%s': %s", file, strerror (errno));
+ ewarn ("rc_get_config `%s': %s", file, strerror (errno));
return (NULL);
}