summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaie%kuix.de <devnull@localhost>2012-11-17 12:51:47 +0000
committerkaie%kuix.de <devnull@localhost>2012-11-17 12:51:47 +0000
commitcef97014b2d7fd8e216abf2f3a230ef3848859d5 (patch)
treecfef7bfb3acd77358ff2dbea72673ac486b49f5c
parentb4c1b9353270ebe40c642a6c5bd40b6178530267 (diff)
downloadnss-hg-cef97014b2d7fd8e216abf2f3a230ef3848859d5.tar.gz
bustage fix, moving variable declaration to beginning of function
-rw-r--r--security/nss/lib/certhigh/ocspsig.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/security/nss/lib/certhigh/ocspsig.c b/security/nss/lib/certhigh/ocspsig.c
index cb686544c..f464df2a2 100644
--- a/security/nss/lib/certhigh/ocspsig.c
+++ b/security/nss/lib/certhigh/ocspsig.c
@@ -51,6 +51,8 @@ ocsp_CreateCertStatus(PLArenaPool *arena,
ocspCertStatusType status,
PRTime revocationTime)
{
+ ocspCertStatus *cs;
+
if (!arena) {
PORT_SetError(SEC_ERROR_INVALID_ARGS);
return NULL;
@@ -66,7 +68,7 @@ ocsp_CreateCertStatus(PLArenaPool *arena,
return NULL;
}
- ocspCertStatus *cs = PORT_ArenaZNew(arena, ocspCertStatus);
+ cs = PORT_ArenaZNew(arena, ocspCertStatus);
if (!cs)
return NULL;
cs->certStatusType = status;