[asterisk-users] Uninitialized variable in main/pbx.c?

Richard Kenner
Thu, 24 Jan 2013 02:13:07 -0000

I think the below fixes what I reported earlier.  Does that seem right?

*** pbx.c.old   2013-01-23 21:08:51.000000000 -0500
--- pbx.c       2013-01-23 21:09:31.000000000 -0500
*************** static enum ast_pbx_result __ast_pbx_run
*** 5160,5163 ****
--- 5160,5165 ----
                int timeout = 0;

+               dst_exten[0] = '\0';
+
                /* loop on priorities in this context/exten */
                while (!(res = ast_spawn_extension(c, c->context,
c->exten, c->p
riority,