mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cov: use stream ptr in its original form
Let's stop Coverity thinking here we are using freed FILE* for anything else then comparing numbers. For this use the original source of old_stream pointer.
This commit is contained in:
parent
2a8c195360
commit
c5b4574729
@ -206,7 +206,7 @@ int reopen_standard_stream(FILE **stream, const char *mode)
|
||||
return 0;
|
||||
}
|
||||
|
||||
_check_and_replace_standard_log_streams(old_stream, new_stream);
|
||||
_check_and_replace_standard_log_streams(*stream, new_stream);
|
||||
|
||||
*stream = new_stream;
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user