mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00
Merge remote-tracking branch 'origin/topic/vern/gh-2645'
* origin/topic/vern/gh-2645: fix for crash when specifying an unwriteable file to --profile-scripts (GH-2645)
This commit is contained in:
commit
7c54d1aa1c
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