summaryrefslogtreecommitdiff
path: root/lib/util/secasn1d.c
diff options
context:
space:
mode:
authorKai Engert <kaie@kuix.de>2015-10-15 20:47:36 +0200
committerKai Engert <kaie@kuix.de>2015-10-15 20:47:36 +0200
commita1fbd9965f2d3e60ebe81fe235208ece4cb868f7 (patch)
tree1ac71c1a1e78887c9c9100d7230b5eebc54de719 /lib/util/secasn1d.c
parentd8c120ca5183102dc7cda3a47dcec2b088d7e422 (diff)
downloadnss-hg-a1fbd9965f2d3e60ebe81fe235208ece4cb868f7.tar.gz
Bug 1192028, Windows bustage fix, variable declarations must go first
Diffstat (limited to 'lib/util/secasn1d.c')
-rw-r--r--lib/util/secasn1d.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/util/secasn1d.c b/lib/util/secasn1d.c
index 9219847b8..7a5bcfd03 100644
--- a/lib/util/secasn1d.c
+++ b/lib/util/secasn1d.c
@@ -985,6 +985,7 @@ sec_asn1d_prepare_for_contents (sec_asn1d_state *state)
SECItem *item;
PLArenaPool *poolp;
unsigned long alloc_len;
+ sec_asn1d_state *parent;
#ifdef DEBUG_ASN1D_STATES
{
@@ -1020,7 +1021,7 @@ sec_asn1d_prepare_for_contents (sec_asn1d_state *state)
/* Determine the maximum length available for this element by finding the
* first definite length ancestor, if any. */
- sec_asn1d_state *parent = sec_asn1d_get_enclosing_construct(state);
+ parent = sec_asn1d_get_enclosing_construct(state);
while (parent && parent->indefinite) {
parent = sec_asn1d_get_enclosing_construct(parent);
}