mirror of
https://github.com/curl/curl.git
synced 2026-04-14 21:41:41 +03:00
netrc: fix pointer to bool conversion
with MSVC 2008 and 2010:
```
lib/netrc.c(107): error C2440: 'initializing' : cannot convert from 'char *' to 'bool'
```
Ref: https://ci.appveyor.com/project/curlorg/curl/builds/51002792/job/jtoxd4mk984oi6fd#L164
Ref: https://ci.appveyor.com/project/curlorg/curl/builds/51002792/job/0wxlw9a8g04e56vt#L177
Follow-up to e9b9bbac22 #15586
Closes #15601
This commit is contained in:
parent
2dc54e3030
commit
4b07b7ebad
1 changed files with 1 additions and 1 deletions
|
|
@ -104,7 +104,7 @@ static int parsenetrc(struct store_netrc *store,
|
|||
int retcode = NETRC_FILE_MISSING;
|
||||
char *login = *loginp;
|
||||
char *password = NULL;
|
||||
bool specific_login = login; /* points to something */
|
||||
bool specific_login = !!login; /* points to something */
|
||||
enum host_lookup_state state = NOTHING;
|
||||
enum found_state keyword = NONE;
|
||||
unsigned char found = 0; /* login + password found bits, as they can come in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue