From: Wolfgang Denk Date: Sat, 27 Mar 2010 23:37:46 +0100 Subject: [U-Boot] [PATCH] mkimage: fix Segmentation Fault when run without "-n name" option Message-ID: <1269729466-15138-1-git-send-email-wd@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de The restructuring of the mkimage command in commit 89a4d6b1 ("tools: mkimage: split code into core, default and FIT image specific") introduced a bug that caused mkimage to segfault when run without "-n name" option. Initialize the imagename entry to prevent that. Signed-off-by: Wolfgang Denk --- tools/mkimage.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/tools/mkimage.c b/tools/mkimage.c index f71f8e7..5c3e872 100644 --- a/tools/mkimage.c +++ b/tools/mkimage.c @@ -37,6 +37,7 @@ struct mkimage_params params = { .type = IH_TYPE_KERNEL, .comp = IH_COMP_GZIP, .dtc = MKIMAGE_DEFAULT_DTC_OPTIONS, + .imagename = "", }; /* -- 1.6.6.1