mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 15:18:20 +00:00
fix for crash when specifying an unwriteable file to --profile-scripts (GH-2645)
This commit is contained in:
parent
83a6faec3c
commit
7bf87b6347
1 changed files with 4 additions and 1 deletions
|
@ -177,7 +177,10 @@ void activate_script_profiling(const char* fn)
|
|||
{
|
||||
f = fopen(fn, "w");
|
||||
if ( ! f )
|
||||
reporter->FatalError("can't open %s to record scripting profile", fn);
|
||||
{
|
||||
fprintf(stderr, "ERROR: Can't open %s to record scripting profile\n", fn);
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
else
|
||||
f = stdout;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue