weather: fix this embarrassing bug
authorPhil Sutter <phil@nwl.cc>
Thu, 5 Nov 2009 21:27:34 +0000 (22:27 +0100)
committerPhil Sutter <phil@nwl.cc>
Thu, 5 Nov 2009 21:27:34 +0000 (22:27 +0100)
src/weather.c

index 89ca766..2d99c08 100644 (file)
@@ -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)