From 9d5f5ea3bc10772f6a803aa4c1e66b5a0105e242 Mon Sep 17 00:00:00 2001 From: Markus Goetz Date: Mon, 13 Apr 2015 15:49:33 +0200 Subject: [PATCH] Discovery: Initialize error with EIO in constructor This is safer, initializing it in remote_vio_opendir_hook was enough though. --- src/libsync/discoveryphase.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsync/discoveryphase.h b/src/libsync/discoveryphase.h index 5ceb477e3..43dd644b6 100644 --- a/src/libsync/discoveryphase.h +++ b/src/libsync/discoveryphase.h @@ -63,7 +63,7 @@ struct DiscoveryDirectoryResult { int code; QList list; int listIndex; - DiscoveryDirectoryResult() : code(0), listIndex(0) { } + DiscoveryDirectoryResult() : code(EIO), listIndex(0) { } }; // Run in the main thread, reporting to the DiscoveryJobMainThread object -- 2.30.2