Update stack.c

Fixed bug with uninitialised stack pointer.