From: Lennart Poettering Date: Wed, 13 Apr 2022 16:51:02 +0000 (+0200) Subject: execute: passing NULL as second argument for recurse_dir() is equivalent to "" X-Git-Tag: v251-rc2~75^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3691083ce5e12e0290f0c8a83983cb0eefb6c126;p=thirdparty%2Fsystemd.git execute: passing NULL as second argument for recurse_dir() is equivalent to "" --- diff --git a/src/core/execute.c b/src/core/execute.c index 4cc24466753..580589eab82 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -2832,7 +2832,7 @@ static int acquire_credentials( r = recurse_dir( sub_fd, - /* path= */ "", + /* path= */ NULL, /* statx_mask= */ 0, /* n_depth_max= */ UINT_MAX, RECURSE_DIR_IGNORE_DOT|RECURSE_DIR_ENSURE_TYPE,