From 20b0b2be6c6f7c2c3949e4e004fad78748e76b9b Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Tue, 4 Jan 2022 10:25:08 +0100 Subject: [PATCH] avformat/tests/imf: Don't use uninitialized value Reviewed-by: Zane van Iperen Signed-off-by: Andreas Rheinhardt --- libavformat/tests/imf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/tests/imf.c b/libavformat/tests/imf.c index 68e4c8b6af..142aa04261 100644 --- a/libavformat/tests/imf.c +++ b/libavformat/tests/imf.c @@ -347,7 +347,7 @@ static int test_bad_cpl_parsing(void) doc = xmlReadMemory(cpl_bad_doc, strlen(cpl_bad_doc), NULL, NULL, 0); if (doc == NULL) { printf("XML parsing failed.\n"); - return ret; + return 1; } ret = ff_imf_parse_cpl_from_xml_dom(doc, &cpl);