avoid returning an uninitialized pointer
Merge pull request #1 from hoccer/fix_uninitialized_ptr

avoid returning an uninitialized pointer