aboutsummaryrefslogtreecommitdiff
path: root/src/NetUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/NetUtils.cpp')
-rw-r--r--src/NetUtils.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/NetUtils.cpp b/src/NetUtils.cpp
index de908b1..f120cc0 100644
--- a/src/NetUtils.cpp
+++ b/src/NetUtils.cpp
@@ -1636,6 +1636,8 @@ namespace QuickMedia {
// Also checks for balanced parentheses to allow text such as: (see: example.com/) that excludes the last parenthesis.
std::vector<Range> extract_urls(const std::string &str) {
std::vector<Range> ranges;
+ if(str.empty())
+ return ranges;
int parentheses_depth = 0;
bool is_valid_url = false;