Warning digit1 may be used uninitialized in this function

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.