Non void function with no return value

Code generated by some compilers cause segmentation fault.
Merge pull request #8 from KJacob/patch-1

Non void function with no return value