From 1751d8c80cef40777b782c737947b4e86d99e7d6 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Thu, 19 May 2022 00:44:31 +0200 Subject: [PATCH] portable: Remove unnecessary assert() Fixes #23433 matches is plumbed through until it finally gets used in unit_match() which can deal with NULL matches so the assert() is unnecessary and can be removed. The two call sites of extract_image_and_extensions() also don't assert() on matches either. --- src/portable/portable.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/portable/portable.c b/src/portable/portable.c index 7bba7b47e42..2191d6c6537 100644 --- a/src/portable/portable.c +++ b/src/portable/portable.c @@ -530,7 +530,6 @@ static int extract_image_and_extensions( int r; assert(name_or_path); - assert(matches); r = image_find_harder(IMAGE_PORTABLE, name_or_path, NULL, &image); if (r < 0) -- 2.47.3