diff options
author | Harald Welte <laforge@gnumonks.org> | 2012-06-01 21:59:08 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2012-06-01 21:59:08 +0200 |
commit | 177b57c5c40b93ee35966e98f4be59ccfc3bd19d (patch) | |
tree | c5289bb668771cb9110866b1c38d936acb7af18a /src | |
parent | b0c5b8a26946bd3222bdd227acad64a5c21ebb73 (diff) |
shell: fix manual operator selection
Diffstat (limited to 'src')
-rw-r--r-- | src/util/shell.c | 2 |
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) |