fixed uninitialized pointer

Merged Marco Clemencic requested to merge fix-from-coverity into master

Merge request reports