diff options
author | Wolfgang Denk <wd@denx.de> | 2010-03-27 23:37:46 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-03-28 00:13:54 +0100 |
commit | 04387d24a17b1ee13024dd4779da4b84d47c65cc (patch) | |
tree | 9430e1ed00b9ae80149ef6a2adcda134e49efffc | |
parent | 7027d5622d56ee2292713773044fb6352e431f31 (diff) | |
download | u-boot-imx-04387d24a17b1ee13024dd4779da4b84d47c65cc.zip u-boot-imx-04387d24a17b1ee13024dd4779da4b84d47c65cc.tar.gz u-boot-imx-04387d24a17b1ee13024dd4779da4b84d47c65cc.tar.bz2 |
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 <wd@denx.de>
-rw-r--r-- | 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 = "", }; /* |