diff options
| author | JP Rosevear <jpr@novell.com> | 2005-01-08 09:36:33 +0000 |
|---|---|---|
| committer | JP Rosevear <jpr@src.gnome.org> | 2005-01-08 09:36:33 +0000 |
| commit | a9b97af8c148cb08b05f638d539238bd1b54da4a (patch) | |
| tree | 7b57ac4c82e5085105f279e8a9884cecad1975e1 /calendar/backends/weather | |
| parent | 2e5539d496f314690b221fe17a4cbe741131770f (diff) | |
| download | evolution-data-server-a9b97af8c148cb08b05f638d539238bd1b54da4a.tar.gz | |
make sure we don't free a static string
2005-01-08 JP Rosevear <jpr@novell.com>
* backends/weather/e-cal-backend-weather.c (create_weather): make
sure we don't free a static string
Diffstat (limited to 'calendar/backends/weather')
| -rw-r--r-- | calendar/backends/weather/e-cal-backend-weather.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/calendar/backends/weather/e-cal-backend-weather.c b/calendar/backends/weather/e-cal-backend-weather.c index 455989969..90b1c158e 100644 --- a/calendar/backends/weather/e-cal-backend-weather.c +++ b/calendar/backends/weather/e-cal-backend-weather.c @@ -333,9 +333,9 @@ create_weather (ECalBackendWeather *cbw, WeatherForecast *report) if (report->pop != 0) pop = g_strdup_printf (_("%d%% chance of precipitation\n"), report->pop); else - pop = ""; + pop = g_strdup (""); if (report->snowhigh == 0) - snow = ""; + snow = g_strdup (""); else if (report->snowhigh == report->snowlow) { if (inches) snow = g_strdup_printf (_("%.1fin snow\n"), cmtoin(report->snowhigh)); |
