Index: lib/url.c
===================================================================
--- lib/url.c	(revision 107737)
+++ lib/url.c	(working copy)
@@ -322,7 +322,7 @@
   if(!result) {
     /* Store the username part of option if required */
     if(userp) {
-      if(!user && option && option[0] == ':') {
+      if(!user && option && (option[0] == ':' || option[0] == '\0')) {
         /* Allocate an empty string instead of returning NULL as user name */
         user = strdup("");
         if(!user)
