address coverity side effect in assert warning

(cherry picked from commit 2156a5b6)
21 jobs for 715-side-effect-in-assertion-in-name_test-c-v9_12 in 38 minutes and 57 seconds (queued for 4 seconds)