[PATCH] openbsc[master]: bs11_config: add brackets to fix warning in argument parsing

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

lynxis lazus gerrit-no-reply at lists.osmocom.org
Tue Jul 12 13:46:09 UTC 2016


Review at  https://gerrit.osmocom.org/499

bs11_config: add brackets to fix warning in argument parsing

Change-Id: I2f02e09a21ca622b03fd966445f533263a499c8d
---
M openbsc/src/utils/bs11_config.c
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/openbsc refs/changes/99/499/1

diff --git a/openbsc/src/utils/bs11_config.c b/openbsc/src/utils/bs11_config.c
index 0d13e25..3fb74bf 100644
--- a/openbsc/src/utils/bs11_config.c
+++ b/openbsc/src/utils/bs11_config.c
@@ -850,10 +850,11 @@
 			break;
 		}
 	}
-	if (optind < argc)
+	if (optind < argc) {
 		command = argv[optind];
 	        if (optind+1 < argc)
 			value = argv[optind+1];
+	}
 
 }
 

-- 
To view, visit https://gerrit.osmocom.org/499
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2f02e09a21ca622b03fd966445f533263a499c8d
Gerrit-PatchSet: 1
Gerrit-Project: openbsc
Gerrit-Branch: master
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>



More information about the gerrit-log mailing list