summaryrefslogtreecommitdiff
path: root/AK/String.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'AK/String.cpp')
-rw-r--r--AK/String.cpp2
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;
}