aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Wise <pabs3@bonedaddy.net>2014-11-02 08:22:46 +0800
committerPaul Kocialkowski <contact@paulk.fr>2014-11-02 10:28:02 +0100
commit68c86c06f113f7dca0148246e4843029e92190c8 (patch)
tree798042a0b8373a579836365999d928ce53588b55
parent08b6b2981b3fb35764c5ab46af27ad210cb96f37 (diff)
downloadexternal_libsamsung-ipc-68c86c06f113f7dca0148246e4843029e92190c8.zip
external_libsamsung-ipc-68c86c06f113f7dca0148246e4843029e92190c8.tar.gz
external_libsamsung-ipc-68c86c06f113f7dca0148246e4843029e92190c8.tar.bz2
Fix crash in modemctrl after a failed bootstrap
-rw-r--r--tools/ipc-modem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ipc-modem.c b/tools/ipc-modem.c
index ad92113..935677b 100644
--- a/tools/ipc-modem.c
+++ b/tools/ipc-modem.c
@@ -528,7 +528,7 @@ int main(int argc, char *argv[])
ipc_client_log_callback_register(client_fmt, modem_log_handler_quiet, NULL);
else ipc_client_log_callback_register(client_fmt, modem_log_handler, NULL);
- while(opt_i < argc) {
+ while(optind < argc) {
if(strncmp(argv[optind], "power-on", 8) == 0) {
if (ipc_client_power_on(client_fmt) < 0)
printf("[E] Something went wrong while powering modem on\n");