Fix dtmf buglet
[asterisk/asterisk.git] / apps / app_festival.c
index 56976c5..d9b2f46 100755 (executable)
@@ -170,7 +170,7 @@ static int send_waveform_to_channel(struct ast_channel *chan, char *waveform, in
                        }
                        if (f->frametype == AST_FRAME_DTMF) {
                                ast_log(LOG_DEBUG, "User pressed a key\n");
                        }
                        if (f->frametype == AST_FRAME_DTMF) {
                                ast_log(LOG_DEBUG, "User pressed a key\n");
-                               if (strchr(intkeys, f->subclass)) {
+                               if (intkeys && strchr(intkeys, f->subclass)) {
                                        res = f->subclass;
                                        ast_frfree(f);
                                        break;
                                        res = f->subclass;
                                        ast_frfree(f);
                                        break;