mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 15:02:50 +02:00
Fix crash, if -r used without arg or with one arg only
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@211 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Branch: ni/coolstream
Commit: dcf4783f22
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2010-01-25 (Mon, 25 Jan 2010)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1897,10 +1897,11 @@ void CNeutrinoApp::CmdParser(int argc, char **argv)
|
||||
zapit_debug = 1;
|
||||
}
|
||||
else if (!strcmp(argv[x], "-r")) {
|
||||
x++;
|
||||
if (x < argc)
|
||||
xres = atoi(argv[++x]);
|
||||
xres = atoi(argv[x++]);
|
||||
if (x < argc)
|
||||
yres = atoi(argv[++x]);
|
||||
yres = atoi(argv[x++]);
|
||||
}
|
||||
else {
|
||||
dprintf(DEBUG_NORMAL, "Usage: neutrino [-u | --enable-update] [-f | --enable-flash] "
|
||||
|
Reference in New Issue
Block a user