Avoid dereferencing an uninitialized variable

Found with Coverity (CID 56653).