This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch main
in repository eternity.
View the commit online.
commit bc212b372c26af3e39fa4c697ee9e7f08c9d708c
Author: Alastair Poole <[email protected]>
AuthorDate: Mon Nov 23 01:23:50 2026 +0000
fixes: fix leak and compiler warning.
Small fixes.
---
src/lib/eternity_clock.c | 2 +-
src/lib/eternity_world.c | 6 ++----
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/src/lib/eternity_clock.c b/src/lib/eternity_clock.c
index 6154f09..30c2d5a 100644
--- a/src/lib/eternity_clock.c
+++ b/src/lib/eternity_clock.c
@@ -71,7 +71,7 @@ eternity_clock_time_get(const char *zone, time_t now, struct tm *result)
/* TZ is process-wide. Call only from the UI thread, never a worker. */
if (zone && !strcmp(zone, "local"))
- return eternity_localtime(&now, result) != NULL;
+ return eternity_localtime(&now, result) != EINA_FALSE;
if (!_eternity_clock_zone_path_get(zone, tz + 1, sizeof(tz) - 1)) return EINA_FALSE;
current = getenv("TZ");
diff --git a/src/lib/eternity_world.c b/src/lib/eternity_world.c
index a71568f..b2ecac2 100644
--- a/src/lib/eternity_world.c
+++ b/src/lib/eternity_world.c
@@ -75,13 +75,11 @@ eternity_world_location_get(const char *zone, double *latitude, double *longitud
const char *name;
char line[1024];
Eina_Bool found;
- char *save, *country, *coords, *zone_name, *lon;
+ char *save, *country, *coords, *zone_name, *lon, *resolved;
if (!strcmp(zone, "local"))
{
- char *resolved;
tz = getenv("TZ");
-
resolved = eternity_realpath("/etc/localtime");
if (tz && tz[0]) zone = tz[0] == ':' ? tz + 1 : tz;
@@ -89,7 +87,6 @@ eternity_world_location_get(const char *zone, double *latitude, double *longitud
{
if (strstr(resolved, "/zoneinfo/"))
zone = strstr(resolved, "/zoneinfo/") + strlen("/zoneinfo/");
- free(resolved);
}
else
{
@@ -104,6 +101,7 @@ eternity_world_location_get(const char *zone, double *latitude, double *longitud
zone = local_zone;
}
+ free(resolved);
}
if (zone[0] == '/')
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.