From 177b57c5c40b93ee35966e98f4be59ccfc3bd19d Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 1 Jun 2012 21:59:08 +0200 Subject: shell: fix manual operator selection --- src/util/shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util') 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) -- cgit v1.2.3