From 3a79a8d3980407f1e0f83797c92ef19899980115 Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Wed, 13 Dec 2017 01:05:40 -0800 Subject: SynthesisDBPlugin.cpp: fix error path This is a cut-and-paste error from upstream libsynthesis: an error code was returned in an error case where a boolean should have been returned. Signed-off-by: Patrick Ohly --- src/syncevo/SynthesisDBPlugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/syncevo/SynthesisDBPlugin.cpp b/src/syncevo/SynthesisDBPlugin.cpp index 6d76c9b7..d61dbb7d 100644 --- a/src/syncevo/SynthesisDBPlugin.cpp +++ b/src/syncevo/SynthesisDBPlugin.cpp @@ -475,7 +475,7 @@ bool SyncEvolution_ReadNextMapItem( CContext aContext, MapID mID, bool aFirst ) { SyncSource *source = DBC( aContext ); if (!source) { - return LOCERR_WRONGUSAGE; + return false; } bool res = false; try { -- cgit v1.2.3