Update hex_to_dec.c

Removed stateful "h" variable, and left variables uninitialized in declaration. Only ended up having to initialize sum to zero.