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

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Jul 26 10:44:45 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17703 
====================================================================== 
Reported By:                stuarth
Assigned To:                seanbright
====================================================================== 
Project:                    Asterisk
Issue ID:                   17703
Category:                   Core/BuildSystem
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
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:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2010-07-25 05:16 CDT
Last Modified:              2010-07-26 10:44 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"], [:])

======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0015370 [patch] Repeatedly building the asteris...
====================================================================== 

---------------------------------------------------------------------- 
 (0125039) svnbot (reporter) - 2010-07-26 10:44
 https://issues.asterisk.org/view.php?id=17703#c125039 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 279503

_U  trunk/
U   trunk/autoconf/ast_ext_lib.m4

------------------------------------------------------------------------
r279503 | seanbright | 2010-07-26 10:44:44 -0500 (Mon, 26 Jul 2010) | 19
lines

Merged revisions 279502 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
  r279502 | seanbright | 2010-07-26 11:43:54 -0400 (Mon, 26 Jul 2010) | 12
lines
  
  Merged revisions 279501 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
  
  ........
    r279501 | seanbright | 2010-07-26 11:41:13 -0400 (Mon, 26 Jul 2010) |
5 lines
    
    Expand the correct value within AST_OPTION_ONLY.
    
    (closes issue https://issues.asterisk.org/view.php?id=17703)
    Reported by: stuarth
  ........
................

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

http://svn.digium.com/view/asterisk?view=rev&revision=279503 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-07-26 10:44 svnbot         Checkin                                      
2010-07-26 10:44 svnbot         Note Added: 0125039                          
======================================================================




More information about the asterisk-bugs mailing list