Commit 9ad16a1d authored by Moritz Bunkus's avatar Moritz Bunkus

Initialize local variable CFile before using it

git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/foundation_src@859 a6f86f6d-0131-4f8e-9e7b-e335508773d5
parent d60bc456
......@@ -514,6 +514,7 @@ int main(void)
ReadLevel(&parseIn, &Elements);
memset(&Extras,0,sizeof(Extras));
memset(&CFile,0,sizeof(CFile));
Extras.CurrLevel = -1;
Extras.CurrProfile = 1;
......
......@@ -415,6 +415,7 @@ int main(void)
ReadLevel(&parseIn, &Elements);
memset(&Extras,0,sizeof(Extras));
memset(&CFile,0,sizeof(CFile));
Extras.CurrLevel = -1;
CFile.Stream = OutputC;
......
......@@ -548,6 +548,8 @@ int main(void)
table_extras Extras;
memset(&Extras,0,sizeof(Extras));
memset(&Table,0,sizeof(Table));
memset(&TBody,0,sizeof(TBody));
Extras.CurrLevel = -1;
ReadLevel(&parseIn, &Elements);
......@@ -562,7 +564,7 @@ int main(void)
Extras.IsLast = 1;
OutputElement(*element, &TBody, &Extras);
}
TextElementEnd(&TBody);
TextElementEnd(&Table);
}
......@@ -578,4 +580,3 @@ int main(void)
ParserContext_Done(&p);
return 0;
}
......@@ -306,6 +306,7 @@ int main(void)
{
textwriter outFile;
memset(&outFile,0,sizeof(outFile));
outFile.Stream = Output;
TextElementXML(&p, &outFile, T("table"));
......@@ -321,4 +322,3 @@ int main(void)
ParserContext_Done(&p);
return 0;
}
......@@ -113,6 +113,7 @@ int main(void)
{
textwriter outFile;
memset(&outFile,0,sizeof(outFile));
outFile.Stream = Output;
TextElementXML(&p, &outFile, T("table"));
......
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