From: Steve Lhomme Date: Sun, 16 Oct 2022 14:33:59 +0000 (+0200) Subject: test8: initialize all element levels X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cb789029a787f289ef30b610a0e16e03928a85f8;p=libmatroska test8: initialize all element levels Fixes a warning/error with VS2022 --- diff --git a/test/mux/test8.cpp b/test/mux/test8.cpp index a84daea..60292ee 100644 --- a/test/mux/test8.cpp +++ b/test/mux/test8.cpp @@ -73,11 +73,11 @@ int main(int argc, char **argv) // read the EBML head EbmlStream aStream(Cluster_file); - EbmlElement * ElementLevel0; - EbmlElement * ElementLevel1; - EbmlElement * ElementLevel2; - EbmlElement * ElementLevel3 = NULL; - EbmlElement * ElementLevel4 = NULL; + EbmlElement * ElementLevel0 = nullptr; + EbmlElement * ElementLevel1 = nullptr; + EbmlElement * ElementLevel2 = nullptr; + EbmlElement * ElementLevel3 = nullptr; + EbmlElement * ElementLevel4 = nullptr; /// MuxedFile.ReadHead(); // find the EBML head in the file