mirror of
https://github.com/systemd/systemd
synced 2024-09-06 16:56:43 +00:00
journal: use empty_to_null() in one more place
Follow-up for 45bcab66a9
.
This commit is contained in:
parent
c78e86ab8d
commit
80fcdb731d
|
@ -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 '?':
|
||||
|
|
Loading…
Reference in a new issue