MORE Add safety to struct state_t

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>