[asterisk-bugs] [Asterisk 0017703]: AST_OPTION_ONLY tests wrong variable

Asterisk Bug Tracker noreply at bugs.digium.com
Sun Jul 25 05:16:21 CDT 2010


The following issue has been SUBMITTED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17703 
====================================================================== 
Reported By:                stuarth
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17703
Category:                   Core/BuildSystem
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-07-25 05:16 CDT
Last Modified:              2010-07-25 05:16 CDT
====================================================================== 
Summary:                    AST_OPTION_ONLY tests wrong variable
Description: 
AST_OPTION_ONLY tests the wrong variable when it's checking to see if a
value is used.

if test "x${$2}" = "x"; then
    m4_ifval($4, [$2="$4"], [:])

Instead it should be testing withval:

if test "x${withval}" = "x"; then
    m4_ifval($4, [$2="$4"], [:])

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-07-25 05:16 stuarth        New Issue                                    
2010-07-25 05:16 stuarth        Asterisk Version          => SVN             
2010-07-25 05:16 stuarth        Regression                => No              
2010-07-25 05:16 stuarth        SVN Branch (only for SVN checkouts, not tarball
releases) => N/A             
======================================================================




More information about the asterisk-bugs mailing list