]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
terminal-util: drop assert() on 'x'
authorLennart Poettering <lennart@amutable.com>
Thu, 25 Jun 2026 09:11:07 +0000 (11:11 +0200)
committerLennart Poettering <lennart@amutable.com>
Thu, 2 Jul 2026 06:20:59 +0000 (08:20 +0200)
We happily take a NULL strv as argument, equivalent to an empty one,
like most of our strv handling funcs.

src/basic/terminal-util.c

index 45182ec8603b4fb05732de97bd137b203cb3152e..597880d0ff1c878cc043f1d3f175ad05b43fa1f2 100644 (file)
@@ -529,7 +529,6 @@ int show_menu(char **x,
               const char *grey_prefix,
               bool with_numbers) {
 
-        assert(x);
         assert(n_columns > 0);
         assert(column_width > 0);