aboutsummaryrefslogtreecommitdiff
path: root/src/StringUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/StringUtils.cpp')
-rw-r--r--src/StringUtils.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/StringUtils.cpp b/src/StringUtils.cpp
index 57c30d4..5505a32 100644
--- a/src/StringUtils.cpp
+++ b/src/StringUtils.cpp
@@ -151,6 +151,7 @@ namespace QuickMedia {
// TODO: Support utf-8 case insensitive find
bool string_find_fuzzy_case_insensitive(const std::string &str, const std::string &substr) {
if(substr.empty()) return true;
+ if(str.empty()) return false;
size_t str_index = 0;
bool full_match = true;