Hah, it shouldn't take a very advanced analysis to catch this.. surprised GCC didn't warn