mirror of https://github.com/vitalif/grive2
Fix uninitialized use of c2 variable in State::FromLocal
parent
84c57c121e
commit
2e75fc669b
|
@ -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