Browse Source

LibC: Make tgetnum() return -1 if capability is not available

Thiago Henrique Hupner 4 years ago
parent
commit
0f5a23d082
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Userland/Libraries/LibC/termcap.cpp

+ 1 - 1
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;