summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apt-pkg/contrib/proxy.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/contrib/proxy.cc b/apt-pkg/contrib/proxy.cc
index 9a9a9f29c..aad272190 100644
--- a/apt-pkg/contrib/proxy.cc
+++ b/apt-pkg/contrib/proxy.cc
@@ -91,7 +91,7 @@ bool AutoDetectProxy(URI &URL)
return true;
APT::StringView const cleanedbuf = _strstrip(buf);
// We warn about this as the implementor probably meant to use DIRECT instead
- if (cleanedbuf[0] == '\0')
+ if (cleanedbuf.empty())
{
_error->Warning("ProxyAutoDetect command returned an empty line");
return true;