mirror of
https://github.com/curl/curl.git
synced 2026-08-25 05:33:33 +03:00
nss.c: fix compiler warning
This commit is contained in:
parent
bd12c44d35
commit
a498daa0e0
1 changed files with 2 additions and 1 deletions
|
|
@ -882,10 +882,11 @@ isTLSIntoleranceError(PRInt32 err)
|
||||||
static CURLcode nss_init_core(struct SessionHandle *data, const char *cert_dir)
|
static CURLcode nss_init_core(struct SessionHandle *data, const char *cert_dir)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_NSS_INITCONTEXT
|
#ifdef HAVE_NSS_INITCONTEXT
|
||||||
|
NSSInitParameters initparams;
|
||||||
|
|
||||||
if(nss_context != NULL)
|
if(nss_context != NULL)
|
||||||
return CURLE_OK;
|
return CURLE_OK;
|
||||||
|
|
||||||
NSSInitParameters initparams;
|
|
||||||
memset((void *) &initparams, '\0', sizeof(initparams));
|
memset((void *) &initparams, '\0', sizeof(initparams));
|
||||||
initparams.length = sizeof(initparams);
|
initparams.length = sizeof(initparams);
|
||||||
#else /* HAVE_NSS_INITCONTEXT */
|
#else /* HAVE_NSS_INITCONTEXT */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue