so the result of _config->Find() is first converted to a c_str(), then converted back to a string, just to be converted once again to a c_str(). Is this meant to do something like strdup()?
This should get into the dapper point release, once the patch is sorted out and verified.
I do not quite understand this bit:
- Args[0] = _config- >Find(confvar. c_str() ,DecompressProg .c_str( )).c_str( ); >Find(confvar. c_str() ,DecompressProg .c_str( ));
+ string argv0 = _config-
+ Args[0] = argv0.c_str();
so the result of _config->Find() is first converted to a c_str(), then converted back to a string, just to be converted once again to a c_str(). Is this meant to do something like strdup()?
This should get into the dapper point release, once the patch is sorted out and verified.