From bd383562fda71305d278a22a05cbd700f24dfde2 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sat, 1 Apr 2017 18:02:46 -0700 Subject: [PATCH] ircd: Fix semantic error. --- include/ircd/lexical.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ircd/lexical.h b/include/ircd/lexical.h index 1e89f2b50..860bec9cb 100644 --- a/include/ircd/lexical.h +++ b/include/ircd/lexical.h @@ -341,7 +341,7 @@ ircd::lstrip(const string_view &str, const char &c) { const auto pos(str.find_first_not_of(c)); - return pos != string_view::npos? string_view{str.substr(pos)} : str; + return pos != string_view::npos? string_view{str.substr(pos)} : string_view{}; } inline ircd::string_view @@ -349,7 +349,7 @@ ircd::lstrip(const string_view &str, const string_view &c) { const auto pos(str.find_first_not_of(c)); - return pos != string_view::npos? string_view{str.substr(pos)} : str; + return pos != string_view::npos? string_view{str.substr(pos)} : string_view{}; } inline ircd::string_view