Fossil SCM

Minor coding style change.

mistachkin 2019-05-17 18:55 offline-sync
Commit e5ac794f28c1577877d456a5bc6304a911754774b9d7f3f2be83e205b6d72c09
1 file changed +1 -1
+1 -1
--- src/user.c
+++ src/user.c
@@ -508,11 +508,10 @@
508508
}else{
509509
return;
510510
}
511511
}
512512
513
- memset(&url, 0, sizeof(url));
514513
if( g.localOpen && attempt_user(db_lget("default-user",0)) ) return;
515514
516515
if( attempt_user(db_get("default-user", 0)) ) return;
517516
518517
if( attempt_user(fossil_getenv("FOSSIL_USER")) ) return;
@@ -521,10 +520,11 @@
521520
522521
if( attempt_user(fossil_getenv("LOGNAME")) ) return;
523522
524523
if( attempt_user(fossil_getenv("USERNAME")) ) return;
525524
525
+ memset(&url, 0, sizeof(url));
526526
url_parse_local(0, 0, &url);
527527
if( url.user && attempt_user(url.user) ) return;
528528
529529
fossil_print(
530530
"Cannot figure out who you are! Consider using the --user\n"
531531
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button