summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Utilities/pro.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Userland/Utilities/pro.cpp b/Userland/Utilities/pro.cpp
index 123b1d11fe..93201b0f26 100644
--- a/Userland/Utilities/pro.cpp
+++ b/Userland/Utilities/pro.cpp
@@ -191,7 +191,9 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
return 1;
}
- Core::ProxyData proxy_data = TRY(Core::ProxyData::parse_url(proxy_spec));
+ Core::ProxyData proxy_data {};
+ if (!proxy_spec.is_empty())
+ proxy_data = TRY(Core::ProxyData::parse_url(proxy_spec));
Core::EventLoop loop;
bool received_actual_headers = false;