mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:44:58 +00:00
LibC: Make tgetnum() return -1 if capability is not available
This commit is contained in:
parent
aa2916c21b
commit
0f5a23d082
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue