summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--content/urldb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/urldb.c b/content/urldb.c
index 832c7efc5..fc320966a 100644
--- a/content/urldb.c
+++ b/content/urldb.c
@@ -943,7 +943,7 @@ const char *urldb_get_auth_details(const char *url)
* We look for this here.
*/
for (q = p->children; q; q = q->next) {
- if (strlen(q->segment) == 0)
+ if (q->segment[0] == '\0')
break;
}