diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2024-03-14 12:37:31 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2024-03-15 16:07:58 +0100 |
commit | 80fcdb731d4b338acd1eff55a3990e863b627d19 (patch) | |
tree | 134475a50f611ceea2fc246f8dc869ab35ab9b45 /src/journal/cat.c | |
parent | Merge pull request #31777 from keszybz/unit-retitling-and-comments (diff) | |
download | systemd-80fcdb731d4b338acd1eff55a3990e863b627d19.tar.xz systemd-80fcdb731d4b338acd1eff55a3990e863b627d19.zip |
journal: use empty_to_null() in one more place
Follow-up for 45bcab66a9c23a74107118d310e09a46f28494fd.
Diffstat (limited to 'src/journal/cat.c')
-rw-r--r-- | src/journal/cat.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/journal/cat.c b/src/journal/cat.c index 1634f30b44..90d4f5352f 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 '?': |