From: Wolfgang Denk Date: Sat, 27 Mar 2010 22:37:46 +0000 (+0100) Subject: mkimage: fix Segmentation Fault when run without "-n name" option X-Git-Tag: v2010.03-rc3~4 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=04387d24a17b1ee13024dd4779da4b84d47c65cc;p=u-boot mkimage: fix Segmentation Fault when run without "-n name" option 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 --- diff --git a/tools/mkimage.c b/tools/mkimage.c index f71f8e732b..5c3e872906 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 = "", }; /*