From 2edaae5c5b50402cf5252310f16608905890c428 Mon Sep 17 00:00:00 2001 From: Ichthyostega Date: Wed, 5 Jan 2011 04:19:43 +0100 Subject: [PATCH] simplify util::isnil implementation doh! --- src/lib/util.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/util.hpp b/src/lib/util.hpp index 1383e6244..cc1d18909 100644 --- a/src/lib/util.hpp +++ b/src/lib/util.hpp @@ -26,7 +26,6 @@ #include #include -#include #include @@ -84,7 +83,7 @@ namespace util { inline bool isnil (const char* pCStr) { - return !pCStr || 0 == std::strlen(pCStr); + return !pCStr || !(*pCStr); }