Merge pull request #179 from proski/c2-uninitialized

Fix uninitialized use of c2 variable in State::FromLocal
pull/169/merge
Vitaliy Filippov 2018-07-23 02:43:31 +03:00 committed by GitHub
commit 6b03e244df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ void State::FromLocal( const fs::path& p, Resource* folder, Val& tree )
else
{
// Restore state of locally deleted files
Resource *c = folder->FindChild( i->first ), *c2 ;
Resource *c = folder->FindChild( i->first ), *c2 = c ;
if ( !c )
{
c2 = new Resource( i->first, i->second.Has( "tree" ) ? "folder" : "file" ) ;