Fix garbage value being returned with optimizations enabled
Merge pull request #16 from LB--/fix

Fix garbage value being returned with optimizations enabled