From 0c7bf33a989a58922b3eb9aaa96abd773c8754c4 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 24 Dec 2014 16:43:46 +0100 Subject: import: three minor fixes --- src/import/import.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/import/import.c') diff --git a/src/import/import.c b/src/import/import.c index 8b9ca4f724..54f311363a 100644 --- a/src/import/import.c +++ b/src/import/import.c @@ -73,7 +73,7 @@ static int pull_dkr(int argc, char *argv[], void *userdata) { local = name; } - if (streq(local, "-") || isempty(local)) + if (isempty(local) || streq(local, "-")) local = NULL; if (!dkr_name_is_valid(name)) { @@ -89,7 +89,7 @@ static int pull_dkr(int argc, char *argv[], void *userdata) { if (local) { const char *p; - if (!machine_name_is_valid(tag)) { + if (!machine_name_is_valid(local)) { log_error("Local image name '%s' is not valid.", local); return -EINVAL; } -- cgit v1.2.3