summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-06-01 21:59:08 +0200
committerHarald Welte <laforge@gnumonks.org>2012-06-01 21:59:08 +0200
commit177b57c5c40b93ee35966e98f4be59ccfc3bd19d (patch)
treec5289bb668771cb9110866b1c38d936acb7af18a /src/util
parentb0c5b8a26946bd3222bdd227acad64a5c21ebb73 (diff)
shell: fix manual operator selection
Diffstat (limited to 'src/util')
-rw-r--r--src/util/shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/shell.c b/src/util/shell.c
index 39f1cb1..6b461be 100644
--- a/src/util/shell.c
+++ b/src/util/shell.c
@@ -696,7 +696,7 @@ int shell_main(struct lgsm_handle *lgsmh, int sync)
} else if (!strcmp(buf, "r")) {
printf("Register\n");
lgsm_netreg_register(lgsmh, "\0 ");
- } else if (!strcmp(buf,"R")) {
+ } else if (buf[0] == 'R') {
printf("Register to operator\n");
ptr = strchr(buf, '=');
if (!ptr || strlen(ptr) < 6)
personal git repositories of Harald Welte. Your mileage may vary