summaryrefslogtreecommitdiff
path: root/src/import/import-fs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/import/import-fs.c')
-rw-r--r--src/import/import-fs.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/import/import-fs.c b/src/import/import-fs.c
index 9f3ef0826c..04344492c8 100644
--- a/src/import/import-fs.c
+++ b/src/import/import-fs.c
@@ -117,15 +117,13 @@ static int import_fs(int argc, char *argv[], void *userdata) {
if (argc >= 2)
path = argv[1];
- if (empty_or_dash(path))
- path = NULL;
+ path = empty_or_dash_to_null(path);
if (argc >= 3)
local = argv[2];
else if (path)
local = basename(path);
- if (empty_or_dash(local))
- local = NULL;
+ local = empty_or_dash_to_null(local);
if (local) {
if (!machine_name_is_valid(local)) {