diff options
author | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-07-06 08:04:49 +0000 |
---|---|---|
committer | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-07-06 08:04:49 +0000 |
commit | d08b885a8adf1e9c78e7b78fbb2dbd7830ad557f (patch) | |
tree | a7ffb459af4f0b276c912eef9f2c7b2d2199399e /tools/firmware-utils/src | |
parent | da0ae64a3ea87ad47498dc336ea1d906e52ba5ee (diff) |
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/firmware-utils/src')
-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 e3f762583..bb763420e 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"); |