From c88d01af95cc0a72d47035b29f1cd5d0a6b1c5e9 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Thu, 5 Nov 2009 22:27:34 +0100 Subject: [PATCH] weather: fix this embarrassing bug --- src/weather.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/weather.c b/src/weather.c index 89ca7662..2d99c088 100644 --- a/src/weather.c +++ b/src/weather.c @@ -946,6 +946,8 @@ void scan_weather_forecast_arg(struct text_object *obj, const char *arg, void *f DBGP("weather_forecast: fetching %s for day %d from %s every %d seconds", \ wfd->data_type, wfd->day, wfd->uri, wfd->interval); + + obj->data.opaque = wfd; } void print_weather_forecast(struct text_object *obj, char *p, int p_max_size) @@ -995,6 +997,8 @@ void scan_weather_arg(struct text_object *obj, const char *arg, void *free_at_cr DBGP("weather: fetching %s from %s every %d seconds", \ wd->data_type, wd->uri, wd->interval); + + obj->data.opaque = wd; } void print_weather(struct text_object *obj, char *p, int p_max_size)