From ea6bc8858a2f0bcd07f21537b9923caefc44ad66 Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Wed, 6 Jul 2011 08:04:49 +0000 Subject: [PATCH] tools/firmware-utils: allow to create buffalo tags w/o hw version SVN-Revision: 27472 --- tools/firmware-utils/src/buffalo-tag.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/firmware-utils/src/buffalo-tag.c b/tools/firmware-utils/src/buffalo-tag.c index e3f762583e..bb763420e5 100644 --- a/tools/firmware-utils/src/buffalo-tag.c +++ b/tools/firmware-utils/src/buffalo-tag.c @@ -97,7 +97,9 @@ static int check_params(void) CHECKSTR(major, "major version", TAG_VERSION_LEN); CHECKSTR(minor, "minor version", TAG_VERSION_LEN); CHECKSTR(language, "language", TAG_LANGUAGE_LEN); - CHECKSTR(hwver, "hardware version", 2); + + if (hwver) + CHECKSTR(hwver, "hardware version", 2); if (num_regions == 0) { ERR("no region code specified"); -- 2.30.2