From: Daan De Meyer Date: Wed, 18 May 2022 22:44:31 +0000 (+0200) Subject: portable: Remove unnecessary assert() X-Git-Tag: v251~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1751d8c80cef40777b782c737947b4e86d99e7d6;p=thirdparty%2Fsystemd.git 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. --- 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)