Fossil SCM
Minor coding style change.
Commit
e5ac794f28c1577877d456a5bc6304a911754774b9d7f3f2be83e205b6d72c09
Parent
be8b227b2401612…
1 file changed
+1
-1
+1
-1
| --- src/user.c | ||
| +++ src/user.c | ||
| @@ -508,11 +508,10 @@ | ||
| 508 | 508 | }else{ |
| 509 | 509 | return; |
| 510 | 510 | } |
| 511 | 511 | } |
| 512 | 512 | |
| 513 | - memset(&url, 0, sizeof(url)); | |
| 514 | 513 | if( g.localOpen && attempt_user(db_lget("default-user",0)) ) return; |
| 515 | 514 | |
| 516 | 515 | if( attempt_user(db_get("default-user", 0)) ) return; |
| 517 | 516 | |
| 518 | 517 | if( attempt_user(fossil_getenv("FOSSIL_USER")) ) return; |
| @@ -521,10 +520,11 @@ | ||
| 521 | 520 | |
| 522 | 521 | if( attempt_user(fossil_getenv("LOGNAME")) ) return; |
| 523 | 522 | |
| 524 | 523 | if( attempt_user(fossil_getenv("USERNAME")) ) return; |
| 525 | 524 | |
| 525 | + memset(&url, 0, sizeof(url)); | |
| 526 | 526 | url_parse_local(0, 0, &url); |
| 527 | 527 | if( url.user && attempt_user(url.user) ) return; |
| 528 | 528 | |
| 529 | 529 | fossil_print( |
| 530 | 530 | "Cannot figure out who you are! Consider using the --user\n" |
| 531 | 531 |
| --- src/user.c | |
| +++ src/user.c | |
| @@ -508,11 +508,10 @@ | |
| 508 | }else{ |
| 509 | return; |
| 510 | } |
| 511 | } |
| 512 | |
| 513 | memset(&url, 0, sizeof(url)); |
| 514 | if( g.localOpen && attempt_user(db_lget("default-user",0)) ) return; |
| 515 | |
| 516 | if( attempt_user(db_get("default-user", 0)) ) return; |
| 517 | |
| 518 | if( attempt_user(fossil_getenv("FOSSIL_USER")) ) return; |
| @@ -521,10 +520,11 @@ | |
| 521 | |
| 522 | if( attempt_user(fossil_getenv("LOGNAME")) ) return; |
| 523 | |
| 524 | if( attempt_user(fossil_getenv("USERNAME")) ) return; |
| 525 | |
| 526 | url_parse_local(0, 0, &url); |
| 527 | if( url.user && attempt_user(url.user) ) return; |
| 528 | |
| 529 | fossil_print( |
| 530 | "Cannot figure out who you are! Consider using the --user\n" |
| 531 |
| --- src/user.c | |
| +++ src/user.c | |
| @@ -508,11 +508,10 @@ | |
| 508 | }else{ |
| 509 | return; |
| 510 | } |
| 511 | } |
| 512 | |
| 513 | if( g.localOpen && attempt_user(db_lget("default-user",0)) ) return; |
| 514 | |
| 515 | if( attempt_user(db_get("default-user", 0)) ) return; |
| 516 | |
| 517 | if( attempt_user(fossil_getenv("FOSSIL_USER")) ) return; |
| @@ -521,10 +520,11 @@ | |
| 520 | |
| 521 | if( attempt_user(fossil_getenv("LOGNAME")) ) return; |
| 522 | |
| 523 | if( attempt_user(fossil_getenv("USERNAME")) ) return; |
| 524 | |
| 525 | memset(&url, 0, sizeof(url)); |
| 526 | url_parse_local(0, 0, &url); |
| 527 | if( url.user && attempt_user(url.user) ) return; |
| 528 | |
| 529 | fossil_print( |
| 530 | "Cannot figure out who you are! Consider using the --user\n" |
| 531 |