diff options
author | Ori Bernstein <orib@google.com> | 2012-08-01 15:33:55 -0400 |
---|---|---|
committer | Ori Bernstein <orib@google.com> | 2012-08-01 15:33:55 -0400 |
commit | 5f669e29c24c35a569ff01681a7df1420ded7a81 (patch) | |
tree | eb8e588a528ac1ba29e3a5d48a3b00774a9a0c74 /util | |
parent | cf2310b32d61c276fd315107fc673852789c103f (diff) | |
download | mc-5f669e29c24c35a569ff01681a7df1420ded7a81.tar.gz |
Don't crash when we can't open a file.
Diffstat (limited to 'util')
-rw-r--r-- | util/muse.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util/muse.c b/util/muse.c index 624c5c2..336f794 100644 --- a/util/muse.c +++ b/util/muse.c @@ -69,6 +69,8 @@ static void mergeuse(char *path) st = file->file.exports; f = fopen(path, "r"); + if (!f) + die("Couldn't open %s\n", path); loaduse(f, st); fclose(f); } |