Ticket #3509: boost-filesystem-dir_itr_first-r56576.patch

File boost-filesystem-dir_itr_first-r56576.patch, 641 bytes (added by mloskot <mateusz@…>, 13 years ago)

Patch with initialisation of path_size variable in dir_itr_first function

  • libs/filesystem/src/operations.cpp

     
    12821282        target = std::string( "." ); // string was static but caused trouble
    12831283                                     // when iteration called from dtor, after
    12841284                                     // static had already been destroyed
    1285         std::size_t path_size;
     1285        std::size_t path_size = 0;
    12861286        error_code ec = path_max( path_size );
    12871287        if ( ec ) return ec;
    12881288        dirent de;