journal: use empty_to_null() in one more place

Follow-up for 45bcab66a9.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2024-03-14 12:37:31 +01:00
parent c78e86ab8d
commit 80fcdb731d

View file

@ -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 '?':