Fix chanisavail typo that forced "state" mode (bug #3873)
[asterisk/asterisk.git] / apps / app_chanisavail.c
index c4c873b..23fb373 100755 (executable)
@@ -69,7 +69,7 @@ static int chanavail_exec(struct ast_channel *chan, void *data)
        stringp = info;
        strsep(&stringp, "|");
        options = strsep(&stringp, "|");
        stringp = info;
        strsep(&stringp, "|");
        options = strsep(&stringp, "|");
-       if (options && *options == 's');
+       if (options && *options == 's')
                option_state = 1;
        peers = info;
        if (peers) {
                option_state = 1;
        peers = info;
        if (peers) {