mirror of
https://gitlab.com/mobian1/eg25-manager.git
synced 2025-08-30 07:42:23 +02:00
gnss: warn if ftruncate() fails
This commit is contained in:
@@ -216,7 +216,8 @@ static void fetch_assistance_data(struct EG25Manager *manager)
|
|||||||
}
|
}
|
||||||
|
|
||||||
lseek(manager->gnss_assistance_fd, 0, SEEK_SET);
|
lseek(manager->gnss_assistance_fd, 0, SEEK_SET);
|
||||||
ftruncate(manager->gnss_assistance_fd, 0);
|
if (ftruncate(manager->gnss_assistance_fd, 0) < 0)
|
||||||
|
g_warning("Unable to truncate file, assistance data might be invalid!");
|
||||||
url = g_strconcat(manager->gnss_assistance_url, "/",
|
url = g_strconcat(manager->gnss_assistance_url, "/",
|
||||||
manager->gnss_assistance_file, NULL);
|
manager->gnss_assistance_file, NULL);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user