projects
/
monky
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
171af5d
)
weather: fix this embarrassing bug
author
Phil Sutter
<phil@nwl.cc>
Thu, 5 Nov 2009 21:27:34 +0000
(22:27 +0100)
committer
Phil Sutter
<phil@nwl.cc>
Thu, 5 Nov 2009 21:27:34 +0000
(22:27 +0100)
src/weather.c
patch
|
blob
|
history
diff --git
a/src/weather.c
b/src/weather.c
index
89ca766
..
2d99c08
100644
(file)
--- 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);
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)
}
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);
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)
}
void print_weather(struct text_object *obj, char *p, int p_max_size)