mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 00:06:44 -04:00
xfile: fix read from uninitialized memory (see #554)
This commit is contained in:
parent
6640e5698d
commit
094458a8df
@ -34,7 +34,7 @@ PT(XFile) XFile::_standard_templates;
|
||||
*
|
||||
*/
|
||||
XFile::
|
||||
XFile(bool keep_names) : XFileNode(this, "") {
|
||||
XFile(bool keep_names) : XFileNode(this) {
|
||||
_major_version = 3;
|
||||
_minor_version = 2;
|
||||
_format_type = FT_text;
|
||||
|
@ -11,6 +11,16 @@
|
||||
* @date 2004-10-03
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
INLINE XFileNode::
|
||||
XFileNode(XFile *x_file) :
|
||||
Namable(),
|
||||
_x_file(x_file)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
@ -38,6 +38,9 @@ class Filename;
|
||||
*/
|
||||
class XFileNode : public TypedObject, public Namable,
|
||||
virtual public ReferenceCount {
|
||||
protected:
|
||||
INLINE XFileNode(XFile *x_file);
|
||||
|
||||
public:
|
||||
XFileNode(XFile *x_file, const std::string &name);
|
||||
virtual ~XFileNode();
|
||||
|
Loading…
x
Reference in New Issue
Block a user