diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2011-07-06 08:04:49 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2011-07-06 08:04:49 +0000 |
commit | 236c920acade1cbd89acc2a9adbf8f4af45af20b (patch) | |
tree | a7ffb459af4f0b276c912eef9f2c7b2d2199399e /tools | |
parent | 297aefe3b4c16a0d64189a531d30c606dc4af2f0 (diff) | |
download | upstream-236c920acade1cbd89acc2a9adbf8f4af45af20b.tar.gz upstream-236c920acade1cbd89acc2a9adbf8f4af45af20b.tar.bz2 upstream-236c920acade1cbd89acc2a9adbf8f4af45af20b.zip |
tools/firmware-utils: allow to create buffalo tags w/o hw version
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27472 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools')
-rw-r--r-- | tools/firmware-utils/src/buffalo-tag.c | 4 |
1 files changed, 3 insertions, 1 deletions
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"); |