From: Markus Goetz Date: Mon, 13 Apr 2015 13:49:33 +0000 (+0200) Subject: Discovery: Initialize error with EIO in constructor X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~1803^2~201 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9d5f5ea3bc10772f6a803aa4c1e66b5a0105e242;p=nextcloud-desktop.git Discovery: Initialize error with EIO in constructor This is safer, initializing it in remote_vio_opendir_hook was enough though. --- 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