Added default file loading also to pclCreatePath function; fixed bugs 199 and 203
[profile/ivi/persistence-client-library.git] / src / persistence_client_library_backup_filelist.c
index 060901c..8c98898 100644 (file)
@@ -559,7 +559,7 @@ int pclRecoverFromBackup(int backupFd, const char* original)
    if(handle != -1)
    {
       // copy data from one file to another
-      if((handle = pclBackupDoFileCopy(backupFd, handle)) == -1)
+      if(pclBackupDoFileCopy(backupFd, handle) == -1)
       {
          DLT_LOG(gPclDLTContext, DLT_LOG_ERROR, DLT_STRING("pclRecoverFromBackup => couldn't write whole buffer"));
       }