Commit 5374ffe4 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fixes several use of unitialized flags

parent 1f632a7d
......@@ -150,7 +150,7 @@ void Message::AddProgram(Program *p)
string s="s="+p->GetName()+"\n";
string u="u="+p->GetSite()+"\n";
string t;
if(p->IsPermanent() == true)
if(p->IsPermanent())
{
t="t=0 0\n";
}
......@@ -201,7 +201,7 @@ void Message::AddProgram(Program *p)
sdp += v + o + s + u + t + m + c + a;
printf("%s\n",sdp.c_str());
printf("%s\n",sdp.c_str());
return;
}
......
......@@ -33,7 +33,7 @@ using namespace std;
#include "program.h"
Program::Program()
Program::Program() : b_http(false), b_has_pl_group(false)
{
/* Set default Values */
address="";
......@@ -86,6 +86,7 @@ void Program::SetTTL(char *p){program_ttl=p;}
void Program::SetIPVersion(char *p){program_ipversion=atoi(p);}
Program::Program(string n, string u, string m, string s, string a,string p)
: program_ipversion(4), b_http (false), b_has_pl_group (false)
{
name=n;
user=u;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment