tools/firmware-utils: allow to create buffalo tags w/o hw version
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 6 Jul 2011 08:04:49 +0000 (08:04 +0000)
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 6 Jul 2011 08:04:49 +0000 (08:04 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27472 3c298f89-4303-0410-b956-a3cf2f4a3e73

tools/firmware-utils/src/buffalo-tag.c

index e3f7625..bb76342 100644 (file)
@@ -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");
This page took 0.028811 seconds and 4 git commands to generate.