mirror of
https://github.com/deltachat/deltachat-core.git
synced 2025-10-04 10:19:16 +02:00
Merge pull request #621 from deltachat/fix-return-value
return the correct value from dc_save_locations()
This commit is contained in:
commit
9f56b6e789
1 changed files with 2 additions and 0 deletions
|
@ -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++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue