summaryrefslogtreecommitdiffstats
path: root/utils/rk27utils/rk27load
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2014-01-30 15:50:24 +0100
committerMarcin Bukat <marcin.bukat@gmail.com>2014-01-30 21:20:06 +0100
commit7272a95b9c8e1e459b27a11a94514808693c693a (patch)
treee8120cb96e5095188468cad140bb5df98818a617 /utils/rk27utils/rk27load
parent6fc19a7582cbed803aa602defde42cb5b4215d27 (diff)
downloadrockbox-7272a95b9c8e1e459b27a11a94514808693c693a.tar.gz
rockbox-7272a95b9c8e1e459b27a11a94514808693c693a.tar.bz2
rockbox-7272a95b9c8e1e459b27a11a94514808693c693a.zip
rk27utils: improve command line parsing, allow arbitrary USB ids in rkusbtool
Change-Id: I884fe29c10dede7823721c2cac5dc627d6ab25c6 Reviewed-on: http://gerrit.rockbox.org/731 Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com>
Diffstat (limited to 'utils/rk27utils/rk27load')
-rw-r--r--utils/rk27utils/rk27load/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/rk27utils/rk27load/main.c b/utils/rk27utils/rk27load/main.c
index d183ae2df1..e34d7667e3 100644
--- a/utils/rk27utils/rk27load/main.c
+++ b/utils/rk27utils/rk27load/main.c
@@ -91,6 +91,12 @@ int main(int argc, char **argv)
}
}
+ if(filenames[0] == NULL || filenames[1] == NULL || filenames[2] == NULL)
+ {
+ usage(argv[0]);
+ return -5;
+ }
+
fprintf(stderr,"rk27load " VERSION "\n");
fprintf(stderr,"(C) Marcin Bukat 2011\n");