mirror of https://github.com/vitalif/grive2
Merge pull request #179 from proski/c2-uninitialized
Fix uninitialized use of c2 variable in State::FromLocalpull/169/merge
commit
6b03e244df
|
@ -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" ) ;
|
||||
|
|
Loading…
Reference in New Issue