aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2012-04-16 22:37:12 +0200
committerYang Tse <yangsita@gmail.com>2012-04-16 22:37:12 +0200
commita498daa0e0793ef0529b61ba1df31aeb9057d33c (patch)
treec92f9f1bf998de59bf9410b8586b47e1223a7e0b /lib
parentbd12c44d355dcdcb7d094717b2139cec09a3a4c0 (diff)
nss.c: fix compiler warning
Diffstat (limited to 'lib')
-rw-r--r--lib/nss.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/nss.c b/lib/nss.c
index e3298947f..6b9389343 100644
--- a/lib/nss.c
+++ b/lib/nss.c
@@ -882,10 +882,11 @@ isTLSIntoleranceError(PRInt32 err)
static CURLcode nss_init_core(struct SessionHandle *data, const char *cert_dir)
{
#ifdef HAVE_NSS_INITCONTEXT
+ NSSInitParameters initparams;
+
if(nss_context != NULL)
return CURLE_OK;
- NSSInitParameters initparams;
memset((void *) &initparams, '\0', sizeof(initparams));
initparams.length = sizeof(initparams);
#else /* HAVE_NSS_INITCONTEXT */