summaryrefslogtreecommitdiff
path: root/ubi-utils
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-05-31 08:07:41 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-05-31 07:39:48 +0300
commit7df62e8e9bb1f77ca0890cc757bd20a6f33a7fbc (patch)
treefc88edc2f4538b389ba634143259fb76b268190b /ubi-utils
parent8ed2f6b8bf6465197230b196f013b9cae1308ca8 (diff)
ubi-utils: ubimkvol: fix parameters parsing regression
Commit 924862c864da0b62cf93ba7abf2dc78a7e6ac48f broke ubimkvol parrameters parsing by initializing the 'error' parameter of 'simple_strtoul()' to 1 instead of 0. This patch fixes the issue. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'ubi-utils')
-rw-r--r--ubi-utils/src/ubimkvol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ubi-utils/src/ubimkvol.c b/ubi-utils/src/ubimkvol.c
index db71e2f..935f068 100644
--- a/ubi-utils/src/ubimkvol.c
+++ b/ubi-utils/src/ubimkvol.c
@@ -121,7 +121,7 @@ static int param_sanity_check(void)
static int parse_opt(int argc, char * const argv[])
{
while (1) {
- int key, error = 1;
+ int key, error = 0;
key = getopt_long(argc, argv, "a:n:N:s:S:t:h?Vm", long_options, NULL);
if (key == -1)