LibC: Make tgetnum() return -1 if capability is not available

This commit is contained in:
Thiago Henrique Hupner 2021-06-05 08:33:05 -03:00 committed by Linus Groh
parent aa2916c21b
commit 0f5a23d082
Notes: sideshowbarker 2024-07-18 12:31:45 +09:00

View file

@ -108,7 +108,7 @@ int tgetnum(const char* id)
auto it = caps->find(id);
if (it != caps->end())
return atoi((*it).value);
VERIFY_NOT_REACHED();
return -1;
}
static Vector<char> s_tgoto_buffer;