From: Zbigniew Jędrzejewski-Szmek Date: Thu, 14 Mar 2024 11:37:31 +0000 (+0100) Subject: journal: use empty_to_null() in one more place X-Git-Tag: v256-rc1~502^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80fcdb731d4b338acd1eff55a3990e863b627d19;p=thirdparty%2Fsystemd.git journal: use empty_to_null() in one more place Follow-up for 45bcab66a9c23a74107118d310e09a46f28494fd. --- diff --git a/src/journal/cat.c b/src/journal/cat.c index 1634f30b44e..90d4f5352fd 100644 --- a/src/journal/cat.c +++ b/src/journal/cat.c @@ -95,10 +95,7 @@ static int parse_argv(int argc, char *argv[]) { return version(); case 't': - if (isempty(optarg)) - arg_identifier = NULL; - else - arg_identifier = optarg; + arg_identifier = empty_to_null(optarg); break; case 'p': @@ -122,10 +119,7 @@ static int parse_argv(int argc, char *argv[]) { break; case ARG_NAMESPACE: - if (isempty(optarg)) - arg_namespace = NULL; - else - arg_namespace = optarg; + arg_namespace = empty_to_null(optarg); break; case '?':