From c5b4574729db1e704b25912787456c3017e30c68 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac <zkabelac@redhat.com> Date: Tue, 9 Apr 2024 16:18:05 +0200 Subject: [PATCH] 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. --- lib/log/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/log/log.c b/lib/log/log.c index d030eace7..fd5e3d216 100644 --- a/lib/log/log.c +++ b/lib/log/log.c @@ -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;