diff options
Diffstat (limited to 'src/actions.c')
-rw-r--r-- | src/actions.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/actions.c b/src/actions.c index eacb481..f3ebef8 100644 --- a/src/actions.c +++ b/src/actions.c @@ -267,7 +267,15 @@ cmd_unimplemented (void *data) void cmd_source (void *data) { - read_rc_file ((char*)data); + FILE *fileptr; + + if ((fileptr = fopen ((char*) data, "r")) == NULL) + message (" source: error opening file "); + else + { + read_rc_file (fileptr); + fclose (fileptr); + } } void |