diff options
-rw-r--r-- | AK/String.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/AK/String.cpp b/AK/String.cpp index 54c7fd742f..4657835b8d 100644 --- a/AK/String.cpp +++ b/AK/String.cpp @@ -133,7 +133,7 @@ int String::to_int(bool& ok) const int value = 0; int i = 0; - if (is_null()) { + if (is_empty()) { ok = false; return 0; } |