This is an automated email from the git hooks/post-receive script.

bluesabre pushed a 
commit to branch 
master
in repository panel-plugins/xfce4-weather-plugin.

commit fb4e27a9d1530fe5a81dc7bd7df79dfaf674e220
Author: Sean Davis <[email protected]>
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.
_______________________________________________
Xfce4-commits mailing list
[email protected]
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to