1
0
Fork 0
mirror of https://github.com/deltachat/deltachat-core.git synced 2025-10-04 18:29:19 +02:00

Merge pull request #621 from deltachat/fix-return-value

return the correct value from dc_save_locations()
This commit is contained in:
björn petersen 2019-03-23 20:27:06 +01:00 committed by GitHub
commit 9f56b6e789
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -366,6 +366,8 @@ int dc_save_locations(dc_context_t* context,
sqlite3_bind_double(stmt_insert, 5, location->longitude); sqlite3_bind_double(stmt_insert, 5, location->longitude);
sqlite3_bind_double(stmt_insert, 6, location->accuracy); sqlite3_bind_double(stmt_insert, 6, location->accuracy);
sqlite3_step(stmt_insert); sqlite3_step(stmt_insert);
saved_locations++;
} }
} }