Fixed a couple Clang warnings

Fixed some recently introduced "regressions" that trigger Clang warnings (`checkout.c` one is a real bug too).