Merge pull request #15 from blueue/master

Initialize varibales as NULL to avoid segmentation fault even no allocation as below