[asterisk-bugs] [Asterisk 0011759]: [patch] small warning added when using Set() or MSet() and variable names with spaces

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Jan 14 09:05:46 CST 2008


The following issue has been ASSIGNED. 
====================================================================== 
http://bugs.digium.com/view.php?id=11759 
====================================================================== 
Reported By:                caio1982
Assigned To:                file
====================================================================== 
Project:                    Asterisk
Issue ID:                   11759
Category:                   Core-General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 98603 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             01-13-2008 11:36 CST
Last Modified:              01-14-2008 09:05 CST
====================================================================== 
Summary:                    [patch] small warning added when using Set() or
MSet() and variable names with spaces
Description: 
Spaces before or after variable names (until '=' is reached) may lead to
unexpected results as it's quite difficult to detect this just looking at
the dialplan. Like, Set( x=5) will create ' x' not 'x', the same for Set(y
=5).

Master Murf talked about it long time ago in
http://bugs.digium.com/view.php?id=8251 and I thought it was
added sometime after maybe, but today I started having problem with it
again and didn't notice the damn spaces, so I think it won't hurt adding.
====================================================================== 

---------------------------------------------------------------------- 
 svnbot - 01-14-08 09:05  
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 98714

U   trunk/main/pbx.c

------------------------------------------------------------------------
r98714 | file | 2008-01-14 09:05:45 -0600 (Mon, 14 Jan 2008) | 6 lines

Print out a warning when spaces are used in the variable name in Set and
MSet. It is extremely hard to debug this issue so this should make it
easier.
(closes issue http://bugs.digium.com/view.php?id=11759)
Reported by: caio1982
Patches:
      setvar_space_warning1.diff uploaded by caio1982 (license 22)

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

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

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
01-14-08 09:05  svnbot         Checkin                                      
01-14-08 09:05  svnbot         Note Added: 0076892                          
01-14-08 09:05  svnbot         Status                   new => assigned     
01-14-08 09:05  svnbot         Assigned To               => file            
======================================================================




More information about the asterisk-bugs mailing list