Fix valgrind warning in gen_challenge

memcheck issues a warning about using uninitialized value(s)