From 0f5a23d0826e88c2d068f0bfe0dcb0d27d12aaac Mon Sep 17 00:00:00 2001 From: Thiago Henrique Hupner Date: Sat, 5 Jun 2021 08:33:05 -0300 Subject: [PATCH] LibC: Make tgetnum() return -1 if capability is not available --- Userland/Libraries/LibC/termcap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibC/termcap.cpp b/Userland/Libraries/LibC/termcap.cpp index 93c4d9f1be3..28a9c195cd1 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 s_tgoto_buffer;