mirror of
https://gitlab.com/mobian1/eg25-manager.git
synced 2025-08-29 15:22:20 +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);
|
||||
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, "/",
|
||||
manager->gnss_assistance_file, NULL);
|
||||
|
||||
|
Reference in New Issue
Block a user