terminal: fix warning about uninitialized variable

In fact the struct member `value` was not initialized for Invalid_entry.