journal: use empty_to_null() in one more place
Follow-up for 45bcab66a9.
This commit is contained in:
+2
-8
@@ -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 '?':
|
||||
|
||||
Reference in New Issue
Block a user