1
0
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:
Zdenek Kabelac 2024-04-09 16:18:05 +02:00
parent 2a8c195360
commit c5b4574729

View File

@ -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;