Merged revisions 212430 via svnmerge from
authorRichard Mudgett <rmudgett@digium.com>
Mon, 17 Aug 2009 15:42:51 +0000 (15:42 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Mon, 17 Aug 2009 15:42:51 +0000 (15:42 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

Fix uninitialized variable causing random MWI indications.

(closes issue #15727)
Reported by: doda
Patches:
      dahdi_changes.patch uploaded by doda (license 853)

........
  r212430 | rmudgett | 2009-08-17 10:36:28 -0500 (Mon, 17 Aug 2009) | 1 line

  Fix uninitialized variable.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@212431 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_dahdi.c
channels/sig_analog.c

index 31e9502..2fa7cca 100644 (file)
@@ -8333,7 +8333,7 @@ static void *analog_ss_thread(void *data)
        int counter;
        int samples = 0;
        struct ast_smdi_md_message *smdi_msg = NULL;
-       int flags;
+       int flags = 0;
        int i;
        int timeout;
        int getforward = 0;
index 4a54839..1f28f04 100644 (file)
@@ -1418,7 +1418,7 @@ static void *__analog_ss_thread(void *data)
        char numbuf[ANALOG_MAX_CID];
        struct callerid_state *cs = NULL;
        char *name = NULL, *number = NULL;
-       int flags;
+       int flags = 0;
        int timeout;
        int getforward = 0;
        char *s1, *s2;