Return address to static variable instead of local variable