address coverity side effect in assert warning

(cherry picked from commit 2156a5b6)
22 jobs for 715-side-effect-in-assertion-in-name_test-c-v9_11 in 53 minutes and 49 seconds (queued for 4 seconds)