[Xfce4-commits] [panel-plugins/xfce4-weather-plugin] 19/25: Fix crash caused by unsigned int assignment
noreply at xfce.org
noreply at xfce.org
Mon Sep 17 00:14:16 CEST 2018
This is an automated email from the git hooks/post-receive script.
b l u e s a b r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository panel-plugins/xfce4-weather-plugin.
commit fb4e27a9d1530fe5a81dc7bd7df79dfaf674e220
Author: Sean Davis <smd.seandavis at gmail.com>
Date: Thu Sep 13 22:31:13 2018 -0400
Fix crash caused by unsigned int assignment
---
panel-plugin/weather-data.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/panel-plugin/weather-data.c b/panel-plugin/weather-data.c
index 3b23a21..cbc7da5 100644
--- a/panel-plugin/weather-data.c
+++ b/panel-plugin/weather-data.c
@@ -993,6 +993,9 @@ find_smallest_interval(xml_weather *wd,
xml_time *ts_before, *ts_after, *found;
guint i, j;
+ if (before->len == 0)
+ return NULL;
+
for (i = before->len - 1; i > 0; i--) {
ts_before = g_array_index(before, xml_time *, i);
for (j = 0; j < after->len; j++) {
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list