diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/librc-misc.c | 5 |
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); } |