[asterisk-bugs] [Asterisk 0013080]: [patch] in ast_cdr_setapp if (!app) app = NULL; if (!data) data = NULL; is redondant with following uses of S_OR

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Jul 15 12:24:53 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13080 
====================================================================== 
Reported By:                gknispel_proformatique
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13080
Category:                   CDR/General
Reproducibility:            N/A
Severity:                   trivial
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 130978 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             07-15-2008 12:23 CDT
Last Modified:              07-15-2008 12:24 CDT
====================================================================== 
Summary:                    [patch] in ast_cdr_setapp  if (!app) app = NULL; if
(!data) data = NULL; is redondant with following uses of S_OR
Description: 
One does not need to do a :

if (!app)
  app = "";

when the only following use of app is through S_OR(app, "")

Same thing for data.
====================================================================== 

---------------------------------------------------------------------- 
 gknispel_proformatique - 07-15-08 12:24  
---------------------------------------------------------------------- 
Same thing can be done for 1.4 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
07-15-08 12:24  gknispel_proformatiqueNote Added: 0090295                       
  
======================================================================




More information about the asterisk-bugs mailing list