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

00:00:16

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

00:02:34

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

00:02:34

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

00:02:45

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

00:03:02

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

00:02:24

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

00:03:03

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

00:00:51

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

00:02:40

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

00:34:12

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

00:00:54

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

00:35:15

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

00:35:32

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

00:08:21

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

00:35:30

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

00:08:37

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

00:01:10

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

00:00:54

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

00:00:54

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

00:00:53

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

00:00:55