Notes |
|
(0018161)
|
Kevin Burge
|
2009-10-22 00:07
|
|
I don't know if the patch is correct, but it does fix the test case. Is ${}, $ENV{}, or $CACHE{} ever actually valid without a variable name? |
|
|
(0018162)
|
Kevin Burge
|
2009-10-22 00:10
|
|
Just realized that the my patch was checking for var and using key before key was checked. Second patch fixes, and adds an optimization. |
|
|
(0018177)
|
Bill Hoffman
|
2009-10-22 09:43
|
|
I already checked this in:
Log Message:
Fix seg fault for empty ENV{} call bug 0009747
Index: cmCommandArgumentParserHelper.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmCommandArgumentParserHelper.cxx,v
retrieving revision 1.24
retrieving revision 1.25
diff -C 2 -d -r1.24 -r1.25
*** cmCommandArgumentParserHelper.cxx 28 Sep 2009 15:41:57 -0000 1.24
--- cmCommandArgumentParserHelper.cxx 21 Oct 2009 13:04:50 -0000 1.25
***************
*** 66,70 ****
{
return this->ExpandVariable(var);
! }
if ( strcmp(key, "ENV") == 0 )
{
--- 66,74 ----
{
return this->ExpandVariable(var);
! }
! if(!var)
! {
! return this->EmptyVariable;
! }
if ( strcmp(key, "ENV") == 0 )
{ |
|
|
(0026687)
|
David Cole
|
2011-06-06 18:25
|
|
Closing resolved issues that have not been updated in more than 3 months. |
|