coverity: array compared against 0