diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2016-07-12 15:45:46 +0200 |
---|---|---|
committer | Holger Freyther <holger@freyther.de> | 2016-07-25 00:14:44 +0000 |
commit | b1c227e5abbe023615c591ccaf865a3dcb9c742e (patch) | |
tree | b5b118400edd19d1469d3d6df85e83f5134f541b /openbsc/src | |
parent | 17a6bab150bd70954b00645c8d1f18ce3ccf8948 (diff) |
bs11_config: add brackets to fix warning in argument parsing
Change-Id: I2f02e09a21ca622b03fd966445f533263a499c8d
Diffstat (limited to 'openbsc/src')
-rw-r--r-- | openbsc/src/utils/bs11_config.c | 3 |
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]; + } } |