summaryrefslogtreecommitdiffhomepage
path: root/Kernel/Sources/Utils.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Sources/Utils.cxx')
-rw-r--r--Kernel/Sources/Utils.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Kernel/Sources/Utils.cxx b/Kernel/Sources/Utils.cxx
index 152f28fa..2132e80d 100644
--- a/Kernel/Sources/Utils.cxx
+++ b/Kernel/Sources/Utils.cxx
@@ -11,6 +11,10 @@ namespace Kernel
{
Int rt_string_cmp(const Char* src, const Char* cmp, Size size)
{
+ if (!cmp ||
+ !src)
+ return 1;
+
Int32 counter = 0;
for (Size index = 0; index < size; ++index)