Details
Description
Coverity suddenly complained about 4 fopen calls in test/salvage/salvage.c, complaints #1399726, 27, 28 and 29.
162
|
|
CID 1399729 (#1 of 1): Side effect in assertion (ASSERT_SIDE_EFFECT)
|
assignment_where_comparison_intended: Assignment res_fp = fopen("WT_TEST/__slvg.result", "w") has a side effect. This code will work differently in a non-debug build.
|
Did you intend to use a comparison ("==") instead?
|
163 testutil_assert((res_fp = fopen(RSLT, "w")) != NULL);
|
I don't see any real problems, but I'll submit a branch to keep Coverity quiet.
Attachments
Issue Links
- related to
-
WT-4648 Coverity false positive on fopen call
-
- Closed
-