Skip to content

Commit 0a47458

Browse files
committed
linux error test
1 parent 54a08d9 commit 0a47458

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/network.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ int network_set_sqlite_result (sqlite3_context *context, NETWORK_RESULT *result)
275275
break;
276276

277277
case CLOUDSYNC_NETWORK_ERROR:
278-
sqlite3_result_error(context, (result->buffer) ? result->buffer : "Memory error.", -1);
278+
sqlite3_result_error(context, "Memory error.", -1);
279279
sqlite3_result_error_code(context, SQLITE_ERROR);
280280
len = -1;
281281
break;

test/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ int db_init (sqlite3 *db){
164164
");
165165

166166
ERROR_MSG
167-
return SQLITE_OK;
167+
return rc;
168168

169169
}
170170

0 commit comments

Comments
 (0)