aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_iax2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c
index 8b2416762..0b668730d 100644
--- a/channels/chan_iax2.c
+++ b/channels/chan_iax2.c
@@ -9335,6 +9335,7 @@ static int iax2_devicestate(void *data)
struct iax2_peer *p;
int res = AST_DEVICE_INVALID;
+ memset(&pds, 0, sizeof(pds));
parse_dial_string(tmp, &pds);
if (!pds.peer || ast_strlen_zero(pds.peer))
return res;