The argpos++ for the -G or --get-setting argument cannot
From: Erik Hovland <erik@hovland.org>
be reached. Removing it keeps people from wondering
what is going on.
---
mythtv/programs/mythfrontend/main.cpp | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/mythtv/programs/mythfrontend/main.cpp b/mythtv/programs/mythfrontend/main.cpp
index a450304..406367c 100644
a
|
b
|
int main(int argc, char **argv) |
1260 | 1260 | } |
1261 | 1261 | return FRONTEND_EXIT_OK; |
1262 | 1262 | } |
1263 | | else |
1264 | | { |
1265 | | cerr << "Invalid or missing argument to -G/--get-setting option\n"; |
1266 | | return FRONTEND_EXIT_INVALID_CMDLINE; |
1267 | | } |
1268 | | |
1269 | | ++argpos; |
| 1263 | cerr << "Invalid or missing argument to -G/--get-setting option\n"; |
| 1264 | return FRONTEND_EXIT_INVALID_CMDLINE; |
1270 | 1265 | } |
1271 | 1266 | else if (!strcmp(a.argv()[argpos],"-geometry") || |
1272 | 1267 | !strcmp(a.argv()[argpos],"--geometry")) |