aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-12-27 15:31:44 +0000
committerlloyd <[email protected]>2006-12-27 15:31:44 +0000
commit0ccf1c63617d957fd7ddd1f9f5897e5a80d80c15 (patch)
tree57ae32dfba4eea8f5f1bf0655da7b73e4144093d
parent8575e781f56858d978df2b4ab0761480c642bc67 (diff)
The copy constructor of BER_Decoder was not copying other.parent; this
was causing failures on compilers that do not implement named return value optimization.
-rw-r--r--src/ber_dec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ber_dec.cpp b/src/ber_dec.cpp
index 51bc8f989..5f44537d2 100644
--- a/src/ber_dec.cpp
+++ b/src/ber_dec.cpp
@@ -293,7 +293,7 @@ BER_Decoder::BER_Decoder(const BER_Decoder& other)
owns = true;
}
pushed.type_tag = pushed.class_tag = NO_OBJECT;
- parent = 0;
+ parent = other.parent;
}
/*************************************************