Fossil SCM

Prefer use of fossil_strcmp that handles NULL better.

andybradford 2013-11-09 02:38 UTC url-password-fixes
Commit e97665e0566ef29247756ae3306bc0fe3147a860
1 file changed +1 -1
+1 -1
--- src/user.c
+++ src/user.c
@@ -136,11 +136,11 @@
136136
*/
137137
int save_password_prompt(){
138138
Blob x;
139139
char c;
140140
const char *old = db_get("last-sync-pw", 0);
141
- if( (old!=0) && !strcmp(unobscure(old), g.urlPasswd) ){
141
+ if( (old!=0) && fossil_strcmp(unobscure(old), g.urlPasswd)==0 ){
142142
return 0;
143143
}
144144
prompt_user("remember password (Y/n)? ", &x);
145145
c = blob_str(&x)[0];
146146
blob_reset(&x);
147147
--- src/user.c
+++ src/user.c
@@ -136,11 +136,11 @@
136 */
137 int save_password_prompt(){
138 Blob x;
139 char c;
140 const char *old = db_get("last-sync-pw", 0);
141 if( (old!=0) && !strcmp(unobscure(old), g.urlPasswd) ){
142 return 0;
143 }
144 prompt_user("remember password (Y/n)? ", &x);
145 c = blob_str(&x)[0];
146 blob_reset(&x);
147
--- src/user.c
+++ src/user.c
@@ -136,11 +136,11 @@
136 */
137 int save_password_prompt(){
138 Blob x;
139 char c;
140 const char *old = db_get("last-sync-pw", 0);
141 if( (old!=0) && fossil_strcmp(unobscure(old), g.urlPasswd)==0 ){
142 return 0;
143 }
144 prompt_user("remember password (Y/n)? ", &x);
145 c = blob_str(&x)[0];
146 blob_reset(&x);
147

Keyboard Shortcuts

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