Comment 17 for bug 47044

Revision history for this message
Martin Pitt (pitti) wrote :

I do not quite understand this bit:

- Args[0] = _config->Find(confvar.c_str(),DecompressProg.c_str()).c_str();
+ string argv0 = _config->Find(confvar.c_str(),DecompressProg.c_str());
+ 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.