mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibC: Make tgetnum() return -1 if capability is not available
This commit is contained in:
committed by
Linus Groh
parent
aa2916c21b
commit
0f5a23d082
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user