Fossil SCM
Added missing int return. Reported on ML.
Commit
d6bd38fa5c0d8407ab96029aa4ea905f95960804
Parent
0e8f0bc3170d761…
1 file changed
+1
-1
+1
-1
| --- src/http.c | ||
| +++ src/http.c | ||
| @@ -147,11 +147,11 @@ | ||
| 147 | 147 | ** Prompt to save HTTP Basic Authorization information |
| 148 | 148 | */ |
| 149 | 149 | static int save_httpauth_prompt(void){ |
| 150 | 150 | Blob x; |
| 151 | 151 | char c; |
| 152 | - if( (g.urlFlags & URL_REMEMBER)==0 ) return; | |
| 152 | + if( (g.urlFlags & URL_REMEMBER)==0 ) return 0; | |
| 153 | 153 | prompt_user("Remember Basic Authorization credentials (Y/n)? ", &x); |
| 154 | 154 | c = blob_str(&x)[0]; |
| 155 | 155 | blob_reset(&x); |
| 156 | 156 | return ( c!='n' && c!='N' ); |
| 157 | 157 | } |
| 158 | 158 |
| --- src/http.c | |
| +++ src/http.c | |
| @@ -147,11 +147,11 @@ | |
| 147 | ** Prompt to save HTTP Basic Authorization information |
| 148 | */ |
| 149 | static int save_httpauth_prompt(void){ |
| 150 | Blob x; |
| 151 | char c; |
| 152 | if( (g.urlFlags & URL_REMEMBER)==0 ) return; |
| 153 | prompt_user("Remember Basic Authorization credentials (Y/n)? ", &x); |
| 154 | c = blob_str(&x)[0]; |
| 155 | blob_reset(&x); |
| 156 | return ( c!='n' && c!='N' ); |
| 157 | } |
| 158 |
| --- src/http.c | |
| +++ src/http.c | |
| @@ -147,11 +147,11 @@ | |
| 147 | ** Prompt to save HTTP Basic Authorization information |
| 148 | */ |
| 149 | static int save_httpauth_prompt(void){ |
| 150 | Blob x; |
| 151 | char c; |
| 152 | if( (g.urlFlags & URL_REMEMBER)==0 ) return 0; |
| 153 | prompt_user("Remember Basic Authorization credentials (Y/n)? ", &x); |
| 154 | c = blob_str(&x)[0]; |
| 155 | blob_reset(&x); |
| 156 | return ( c!='n' && c!='N' ); |
| 157 | } |
| 158 |