aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/utils
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2016-07-12 15:45:46 +0200
committerHolger Freyther <holger@freyther.de>2016-07-25 00:14:44 +0000
commitb1c227e5abbe023615c591ccaf865a3dcb9c742e (patch)
treeb5b118400edd19d1469d3d6df85e83f5134f541b /openbsc/src/utils
parent17a6bab150bd70954b00645c8d1f18ce3ccf8948 (diff)
bs11_config: add brackets to fix warning in argument parsing
Diffstat (limited to 'openbsc/src/utils')
-rw-r--r--openbsc/src/utils/bs11_config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/openbsc/src/utils/bs11_config.c b/openbsc/src/utils/bs11_config.c
index 0d13e25c5..3fb74bf99 100644
--- a/openbsc/src/utils/bs11_config.c
+++ b/openbsc/src/utils/bs11_config.c
@@ -850,10 +850,11 @@ static void handle_options(int argc, char **argv)
break;
}
}
- if (optind < argc)
+ if (optind < argc) {
command = argv[optind];
if (optind+1 < argc)
value = argv[optind+1];
+ }
}