mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-03 13:00:29 +00:00
LibC: Make tgetnum() return -1 if capability is not available
This commit is contained in:
parent
aa2916c21b
commit
0f5a23d082
Notes:
sideshowbarker
2024-07-18 12:31:45 +09:00
Author: https://github.com/Thihup 🔰 Commit: https://github.com/SerenityOS/serenity/commit/0f5a23d0826 Pull-request: https://github.com/SerenityOS/serenity/pull/7808 Reviewed-by: https://github.com/gunnarbeutner ✅ Reviewed-by: https://github.com/linusg
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…
Reference in a new issue