ref: 5f669e29c24c35a569ff01681a7df1420ded7a81
parent: cf2310b32d61c276fd315107fc673852789c103f
author: Ori Bernstein <orib@google.com>
date: Wed Aug 1 11:33:55 EDT 2012
Don't crash when we can't open a file.
--- a/util/muse.c
+++ b/util/muse.c
@@ -69,6 +69,8 @@
st = file->file.exports;
f = fopen(path, "r");
+ if (!f)
+ die("Couldn't open %s\n", path);
loaduse(f, st);
fclose(f);
}
--
⑨