Index: src/user.c ================================================================== --- src/user.c +++ src/user.c @@ -498,10 +498,11 @@ ** (8) Check if the user can be extracted from the remote URL. ** ** The user name is stored in g.zLogin. The uid is in g.userUid. */ void user_select(void){ + UrlData url; if( g.userUid ) return; if( g.zLogin ){ if( attempt_user(g.zLogin)==0 ){ fossil_fatal("no such user: %s", g.zLogin); }else{ @@ -519,12 +520,13 @@ if( attempt_user(fossil_getenv("LOGNAME")) ) return; if( attempt_user(fossil_getenv("USERNAME")) ) return; - url_parse(0, 0); - if( g.url.user && attempt_user(g.url.user) ) return; + memset(&url, 0, sizeof(url)); + url_parse_local(0, 0, &url); + if( url.user && attempt_user(url.user) ) return; fossil_print( "Cannot figure out who you are! Consider using the --user\n" "command line option, setting your USER environment variable,\n" "or setting a default user with \"fossil user default USER\".\n"