On Sunday 25 November 2007 15:55:36 Victor Lazzarini wrote: > But the code already checks for that, all we need > is to move the assignment. By the way, the crashes > seem to be system-dependent. The assignment of > path to NULL does not seem to crash it everywhere. I guess there might be implementations of std::string that check for non-NULLness of the passed pointer. However the c++ standard doesn't seem to specify behavior in that case. In the particular case of the basic_string constructor with a char* parameter, it is specified that the pointer shall not be NULL (http://www.kuzbass.ru:8086/docs/isocpp/lib-strings.html, section 21.3.1) > > Changed the code; will commit. Thanks! -- Felipe Sateler