projects
/
nextcloud-desktop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2dbd27a
)
Discovery: Initialize error with EIO in constructor
author
Markus Goetz
<markus@woboq.com>
Mon, 13 Apr 2015 13:49:33 +0000
(15:49 +0200)
committer
Markus 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
patch
|
blob
|
history
diff --git
a/src/libsync/discoveryphase.h
b/src/libsync/discoveryphase.h
index 5ceb477e32b0e0ebf8bc20d9ff2e5d97058e6b28..43dd644b67a731a86f1b57a958e5f5ef2987e821 100644
(file)
--- a/
src/libsync/discoveryphase.h
+++ b/
src/libsync/discoveryphase.h
@@
-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