Summary: | ASTERISK-05654: [patch] pbx.c - remove some unnecessary checks | ||
Reporter: | Luigi Rizzo (rizzo) | Labels: | |
Date Opened: | 2005-11-19 18:14:09.000-0600 | Date Closed: | 2008-01-15 15:57:10.000-0600 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) pbx.patch | |
Description: | in pbx.c::pbx_extension_helper(), passdata is an automatic array, so it can never be NULL, and if passdata[0] == '\0', replacing passdata with "" is pointless. The attached patch removes the useless checks. | ||
Comments: | By: Russell Bryant (russell) 2005-11-20 20:50:09.000-0600 added to cvs head, thanks! By: Digium Subversion (svnbot) 2008-01-15 15:57:10.000-0600 Repository: asterisk Revision: 7160 U trunk/ChangeLog U trunk/pbx.c ------------------------------------------------------------------------ r7160 | russell | 2008-01-15 15:57:10 -0600 (Tue, 15 Jan 2008) | 2 lines issue ASTERISK-5654 ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=7160 |