[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 00:48:44 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11759 
====================================================================== 
Reported By:                caio1982
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11759
Category:                   Core-General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
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 00:48 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.
====================================================================== 

---------------------------------------------------------------------- 
 Corydon76 - 01-14-08 00:48  
---------------------------------------------------------------------- 
Any reason you're using strrchr instead of strchr? 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
01-14-08 00:48  Corydon76      Note Added: 0076871                          
======================================================================




More information about the asterisk-bugs mailing list