From 01fc9ba5e34c5a06d425104df7c3b555c0a52045 Mon Sep 17 00:00:00 2001 From: wei Ding Date: Wed, 8 Jan 2020 16:31:54 +0800 Subject: [PATCH] ext_config_image don't need judge wheather be null --- src/image/image.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/image/image.c b/src/image/image.c index 180dec1..ce277ac 100644 --- a/src/image/image.c +++ b/src/image/image.c @@ -246,11 +246,6 @@ static struct bim *bim_get(const char *image_type, const char *image_name, const } if (ext_config_image != NULL) { bim->ext_config_image = util_strdup_s(ext_config_image); - if (bim->ext_config_image == NULL) { - lcrd_append_error_message("Failed to dup external config image %s", bim->ext_config_image); - bim_put(bim); - return NULL; - } } if (container_id != NULL) { bim->container_id = util_strdup_s(container_id);