[asterisk-bugs] [Asterisk 0011886]: function REALTIME() broken

noreply at bugs.digium.com noreply at bugs.digium.com
Thu Jan 31 06:54:49 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11886 
====================================================================== 
Reported By:                sergee
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11886
Category:                   Functions/func_realtime
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 101373 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             01-31-2008 06:04 CST
Last Modified:              01-31-2008 06:54 CST
====================================================================== 
Summary:                    function REALTIME() broken
Description: 
this error in code occured due to CODING-GUIDELINES. I believe that all
blocks should be nested in braces , even if the block contains only 1
operator.

IMHO

if (a) {
 printf("a");
}

is much better then 

if (a)
 printf("b");


1st variant will automaticly exclude problems like this one.
====================================================================== 

---------------------------------------------------------------------- 
 sergee - 01-31-08 06:54  
---------------------------------------------------------------------- 
This bug was introduced in Revision 87263. Probably it also present in 1.4 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
01-31-08 06:54  sergee         Note Added: 0081494                          
======================================================================




More information about the asterisk-bugs mailing list