summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC/termcap.cpp
diff options
context:
space:
mode:
authorThiago Henrique Hupner <thihup@gmail.com>2021-06-05 08:33:05 -0300
committerLinus Groh <mail@linusgroh.de>2021-06-09 19:41:23 +0100
commit0f5a23d0826e88c2d068f0bfe0dcb0d27d12aaac (patch)
tree92cb5f23c51914aae481fef67009c2bcfb280c97 /Userland/Libraries/LibC/termcap.cpp
parentaa2916c21b2aa30bfab2036259094b79529de726 (diff)
downloadserenity-0f5a23d0826e88c2d068f0bfe0dcb0d27d12aaac.zip
LibC: Make tgetnum() return -1 if capability is not available
Diffstat (limited to 'Userland/Libraries/LibC/termcap.cpp')
-rw-r--r--Userland/Libraries/LibC/termcap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibC/termcap.cpp b/Userland/Libraries/LibC/termcap.cpp
index 93c4d9f1be..28a9c195cd 100644
--- a/Userland/Libraries/LibC/termcap.cpp
+++ b/Userland/Libraries/LibC/termcap.cpp
@@ -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;