Skip to content

Commit aa32013

Browse files
committed
fix: cloudsync_network_check_changes must return 0 if there are no available changes, not only rc = SQLITE_OK, because it is a SELECT statement
1 parent e1b2e2b commit aa32013

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/network.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ int network_set_sqlite_result (sqlite3_context *context, NETWORK_RESULT *result)
298298
switch (result->code) {
299299
case CLOUDSYNC_NETWORK_OK:
300300
sqlite3_result_error_code(context, SQLITE_OK);
301+
sqlite3_result_int(context, 0);
301302
rc = 0;
302303
break;
303304

0 commit comments

Comments
 (0)