Fix cppcheck warnings.

This fixes an apparent mistake in
a1eac715a9ff2f1d18cfddc69f49664c57150735.