Different fixes after automatic checks

This should probably be changed to `pincode[0] == '\0'` for type consistency (which, in C, is exactly the same as `0`, but I like to use `'\0'` to explicitly state it's a `char`)