Fix uninitialized use of c2 variable in State::FromLocal

pull/179/head
Pavel Roskin 2018-01-02 16:26:36 -08:00
parent 84c57c121e
commit 2e75fc669b
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" ) ;