diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-12-24 16:43:46 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-12-24 16:53:05 +0100 |
commit | 0c7bf33a989a58922b3eb9aaa96abd773c8754c4 (patch) | |
tree | 801e489c6be63152b900d2984e7c1a3ff99b4f2b /src/import/import.c | |
parent | a36544cd45d607ee7f075157f55e7f646df1d34f (diff) |
import: three minor fixes
Diffstat (limited to 'src/import/import.c')
-rw-r--r-- | src/import/import.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |