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)
Status Job ID Name Coverage
  Precheck
passed precheck:debian:sid:amd64 #105067
amd64 docker linux

00:00:20

 
  Build
passed build:asan:debian:sid:amd64 #105071
amd64 docker linux

00:03:16

passed build:centos:centos6:amd64 #105068
amd64 docker linux

00:03:03

passed build:centos:centos7:amd64 #105069
amd64 docker linux

00:03:04

passed build:debian:sid:amd64 #105070
amd64 docker linux

00:02:33

passed build:debian:sid:i386 #105072
i386 docker linux

00:03:01

passed noassert:build:debian:sid:amd64 #105073
amd64 docker linux

00:02:18

 
  Test
passed docs:debian:sid:amd64 #105074
amd64 docker linux

00:00:49

passed install:debian:sid:amd64 #105085
amd64 docker linux

00:03:15

passed noassert:systemtest:debian:sid:amd64 #105234
linux docker amd64

00:07:13

passed noassert:unittest:debian:sid:amd64 #105086
amd64 docker linux

00:00:55

passed systemtest:asan:debian:sid:amd64 #105083
amd64 docker linux

00:08:53

passed systemtest:centos:centos6:amd64 #105080
amd64 docker linux

00:34:11

passed systemtest:centos:centos7:amd64 #105081
amd64 docker linux

00:33:24

passed systemtest:debian:sid:amd64 #105082
amd64 docker linux

00:33:18

passed systemtest:debian:sid:i386 #105084
i386 docker linux

00:07:30

passed unittest:asan:debian:sid:amd64 #105078
amd64 docker linux

00:01:51

passed unittest:centos:centos6:amd64 #105075
amd64 docker linux

00:00:59

passed unittest:centos:centos7:amd64 #105076
amd64 docker linux

00:00:58

passed unittest:debian:sid:amd64 #105077
amd64 docker linux

00:00:56

passed unittest:debian:sid:i386 #105079
i386 docker linux

00:00:58

failed noassert:systemtest:debian:sid:amd64 #105087
amd64 docker linux

00:07:31