summaryrefslogtreecommitdiff
path: root/lib/util
diff options
context:
space:
mode:
authorKai Engert <kaie@kuix.de>2016-02-18 22:34:38 +0100
committerKai Engert <kaie@kuix.de>2016-02-18 22:34:38 +0100
commit42d8361b2675fe29c9e8deb9dc5ddd50875622f3 (patch)
treee79b9a29079052fbe3a7c1b3027bd433dca385a8 /lib/util
parentca04fe8d9bef865684e315b3fa11e9efed730423 (diff)
downloadnss-hg-42d8361b2675fe29c9e8deb9dc5ddd50875622f3.tar.gz
bug 1245528, obvious bustage fix for older compilers
Diffstat (limited to 'lib/util')
-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 19a96e7b0..1969f2df3 100644
--- a/lib/util/secasn1d.c
+++ b/lib/util/secasn1d.c
@@ -1595,6 +1595,7 @@ sec_asn1d_parse_leaf (sec_asn1d_state *state,
item = (SECItem *)(state->dest);
if (item != NULL && item->data != NULL) {
+ unsigned long offset;
/* Strip leading zeroes when target is unsigned integer */
if (state->underlying_kind == SEC_ASN1_INTEGER && /* INTEGER */
item->len == 0 && /* MSB */
@@ -1605,7 +1606,7 @@ sec_asn1d_parse_leaf (sec_asn1d_state *state,
len--;
}
}
- unsigned long offset = item->len;
+ offset = item->len;
if (state->underlying_kind == SEC_ASN1_BIT_STRING) {
// The previous bit string must have no unused bits.
if (item->len & 0x7) {