Thread (1 message) 1 message, 1 author, 2016-06-15

Re: Question about credential api

From: Jeff King <hidden>
Date: 2016-06-15 22:53:11

On Thu, Mar 01, 2012 at 02:33:08PM +0100, Nelson Benitez Leon wrote:
static struct credential proxy_auth = CREDENTIAL_INIT;
credential_from_url(&proxy_auth, "http://proxy.server.com:8080");

will prox_auth.username and prox_auth.password be an empty string ? so
that strcmp(proxy_auth.username,"") returns zero.. couldn't figure that
out from api-credentials.txt 
[...]
Ok don't bother, I've already checked and seems to return NULL
 in this case.
Right. It is NULL, which translates to "we don't know yet and it needs
to be filled in during credential_fill".

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help