We weren't initializing our pointers properly, resulting in
a difficult-to-trigger segfault.
Reviewed By: mcslee, bhamadani
Test Plan: Built the modified search IDL.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665627
13f79535-47bb-0310-9956-
ffa450edef68
protected:
- t_type() {
+ t_type() :
+ program_(NULL)
+ {
memset(fingerprint_, 0, sizeof(fingerprint_));
}
}
t_type(std::string name) :
+ program_(NULL),
name_(name)
{
memset(fingerprint_, 0, sizeof(fingerprint_));