[asterisk-bugs] [Zaptel 0007175]: Bug in "if" statement: "=" used where "==" should have been used in wctdm.c

noreply at bugs.digium.com noreply at bugs.digium.com
Sat Jun 7 11:35:16 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=7175 
====================================================================== 
Reported By:                Thomas Andrews
Assigned To:                file
====================================================================== 
Project:                    Zaptel
Issue ID:                   7175
Category:                   wctdm
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Zaptel Version:             SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  1.2 
SVN Revision (number only!): 987 
Disclaimer on File?:        Yes 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             05-17-2006 04:15 CDT
Last Modified:              06-07-2008 11:35 CDT
====================================================================== 
Summary:                    Bug in "if" statement: "=" used where "==" should
have been used in wctdm.c
Description: 
Here's the line out of wctdm.c:
if ((wc->mod[x].fxs.lasttxhook == 0x2) || (wc->mod[x].fxs.lasttxhook =
0x6)) {

It should read:

if ((wc->mod[x].fxs.lasttxhook == 0x2) || (wc->mod[x].fxs.lasttxhook ==
0x6)) {

This applies to release 1.2. (Sorry, I can't check svn head atm.)
It is line number 1086
====================================================================== 

---------------------------------------------------------------------- 
 svnbot - 06-07-08 11:35  
---------------------------------------------------------------------- 
Repository: dahdi
Revision: 1070

_U  trunk/
U   trunk/wctdm.c

------------------------------------------------------------------------
r1070 | file | 2008-06-07 11:35:14 -0500 (Sat, 07 Jun 2008) | 10 lines

Merged revisions 1069 via svnmerge from 
https://origsvn.digium.com/svn/zaptel/branches/1.2

........
r1069 | file | 2006-05-17 18:13:27 -0300 (Wed, 17 May 2006) | 2 lines

Don't change the value of lasttxhook, instead do a comparison. (issue
http://bugs.digium.com/view.php?id=7175 reported and fixed by Thomas Andrews) If
this breaks things, you can
yell at me.

........

------------------------------------------------------------------------

http://svn.digium.com/view/dahdi?view=rev&revision=1070 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-07-08 11:35  svnbot         Checkin                                      
06-07-08 11:35  svnbot         Note Added: 0088118                          
======================================================================




More information about the asterisk-bugs mailing list