Discovery: Initialize error with EIO in constructor
authorMarkus Goetz <markus@woboq.com>
Mon, 13 Apr 2015 13:49:33 +0000 (15:49 +0200)
committerMarkus Goetz <markus@woboq.com>
Mon, 13 Apr 2015 13:54:08 +0000 (15:54 +0200)
This is safer, initializing it in remote_vio_opendir_hook was enough though.

src/libsync/discoveryphase.h

index 5ceb477e32b0e0ebf8bc20d9ff2e5d97058e6b28..43dd644b67a731a86f1b57a958e5f5ef2987e821 100644 (file)
@@ -63,7 +63,7 @@ struct DiscoveryDirectoryResult {
     int code;
     QList<FileStatPointer> list;
     int listIndex;
-    DiscoveryDirectoryResult() : code(0), listIndex(0) { }
+    DiscoveryDirectoryResult() : code(EIO), listIndex(0) { }
 };
 
 // Run in the main thread, reporting to the DiscoveryJobMainThread object