[Xfce4-commits] <xfce4-weather-plugin:master> Fix wrong argument in make_forecast_data().

Harald Judt noreply at xfce.org
Mon Jul 16 16:08:01 CEST 2012


Updating branch refs/heads/master
         to 52be43e8112891df0a88bf43b5a4ea6c0028a365 (commit)
       from 91afd25d3a91e1890686b7b9bf1aa0db38625372 (commit)

commit 52be43e8112891df0a88bf43b5a4ea6c0028a365
Author: Harald Judt <h.judt at gmx.at>
Date:   Mon Jul 16 16:05:18 2012 +0200

    Fix wrong argument in make_forecast_data().
    
    Mistake introduced while renaming struct tm and time_t variables.

 panel-plugin/weather-data.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/panel-plugin/weather-data.c b/panel-plugin/weather-data.c
index ed99b0f..5268534 100644
--- a/panel-plugin/weather-data.c
+++ b/panel-plugin/weather-data.c
@@ -470,7 +470,7 @@ make_forecast_data(xml_weather *data, int day, daytime dt)
 		if (interval_data != NULL)
 			break;
 		end_t = time_calc_hour(end_tm, -1);
-		end_tm = *localtime(&end_tm);
+		end_tm = *localtime(&end_t);
 	}
 	if (interval_data == NULL)
 		return NULL;


More information about the Xfce4-commits mailing list