diff options
author | kaie%kuix.de <devnull@localhost> | 2012-11-17 12:51:47 +0000 |
---|---|---|
committer | kaie%kuix.de <devnull@localhost> | 2012-11-17 12:51:47 +0000 |
commit | cef97014b2d7fd8e216abf2f3a230ef3848859d5 (patch) | |
tree | cfef7bfb3acd77358ff2dbea72673ac486b49f5c | |
parent | b4c1b9353270ebe40c642a6c5bd40b6178530267 (diff) | |
download | nss-hg-cef97014b2d7fd8e216abf2f3a230ef3848859d5.tar.gz |
bustage fix, moving variable declaration to beginning of function
-rw-r--r-- | security/nss/lib/certhigh/ocspsig.c | 4 |
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; |