I assume that you use digit1 somewhere. The compiler can't guarantee that message[1] was one of the characters you check for, so it may take whatever was on the stack.
I assume that you use digit1 somewhere. The compiler can't guarantee that message[1] was one of the characters you check for, so it may take whatever was on the stack.