summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--svr-chansession.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/svr-chansession.c b/svr-chansession.c
index 1fac918..2060141 100644
--- a/svr-chansession.c
+++ b/svr-chansession.c
@@ -437,13 +437,11 @@ static int sessionsignal(const struct ChanSess *chansess) {
signame = buf_getstring(ses.payload, NULL);
- i = 0;
- while (signames[i].name != 0) {
+ for (i = 0; signames[i].name != NULL; i++) {
if (strcmp(signames[i].name, signame) == 0) {
sig = signames[i].signal;
break;
}
- i++;
}
m_free(signame);