[Bug 2065] New: Segfault on probable user error

This commit is contained in:
John Abraham
2015-02-27 07:48:34 -08:00
parent 2eb6010bb0
commit ac61b6229a
3 changed files with 8 additions and 5 deletions

View File

@@ -2051,15 +2051,18 @@ AnimationInterface::WriteXmlAnim (bool routing)
{
AnimXmlElement element ("anim");
element.AddAttribute ("ver", GetNetAnimVersion ());
element.Close ();
FILE * f = m_f;
if (!routing)
{
WriteN (element.GetElementString (), m_f);
element.AddAttribute ("filetype", "animation");
}
else
{
WriteN (element.GetElementString (), m_routingF);
element.AddAttribute ("filetype", "routing");
f = m_routingF;
}
element.Close ();
WriteN (element.GetElementString (), f);
}
void

View File

@@ -47,7 +47,7 @@ namespace ns3 {
#define MAX_PKTS_PER_TRACE_FILE 100000
#define PURGE_INTERVAL 5
#define NETANIM_VERSION "netanim-3.105"
#define NETANIM_VERSION "netanim-3.106"
struct NodeSize;

View File

@@ -3,7 +3,7 @@
import wutils
# Required NetAnim version
NETANIM_RELEASE_NAME = "netanim-3.105"
NETANIM_RELEASE_NAME = "netanim-3.106"
def build (bld) :