[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Pkg-xfce-devel] Bug#735478: Bug#735478: Different patch



On Fri, Jan 17, 2014 at 04:25:48PM -0200, Ivan Baldo wrote:
>     Hello.
>     It happens for Montevideo, Uruguay too.
>     I looked at the source and the patch from Christoph will make an
> assertion when viewing the forecast summary or something like that:
> at line 490 of weather-summary.c is called get_data_f (weatherdata,
> TEMP_MAX) and inside get_data_f() in weather-data.c NULL is checked
> for.
>     There aren't any other users of the xml_dayf::hi element.
>     The code can be changed safely to just put "NA" there or any
> other string, even an empty string (anything but NULL):

Yeah, I guess that'll do for now, stay tuned.
> 
> diff -urN xfce4-weather-plugin-0.7.4/panel-plugin/weather-parsers.c xfce4-weather-plugin-0.7.4.allow_empty_hi/panel-plugin/weather-parsers.c
> --- xfce4-weather-plugin-0.7.4/panel-plugin/weather-parsers.c
> 2011-02-02 18:31:29.000000000 -0200
> +++ xfce4-weather-plugin-0.7.4.allow_empty_hi/panel-plugin/weather-parsers.c
> 2014-01-17 16:21:15.399088000 -0200
> @@ -301,7 +301,8 @@
>        if (NODE_IS_TYPE (cur_node, "hi"))
>          {
>            ret->hi = DATA (cur_node);
> -          g_assert (ret->hi != NULL);
> +          if (ret->hi == NULL)
> +            ret->hi = g_strdup ("NA");
>          }
>        else if (NODE_IS_TYPE (cur_node, "low"))
>          {
> 
>     Thanks for uploading it!
>     Bye.
> P.s.: thanks Christoph for your analysis and initial patch though!!!
> 
> -- 
> Ivan Baldo - ibaldo at adinet.com.uy - http://ibaldo.codigolibre.net/
> From Montevideo, Uruguay, at the south of South America.
> Freelance programmer and GNU/Linux system administrator, hire me!
> Alternatives: ibaldo at codigolibre.net - http://go.to/ibaldo
> 
> _______________________________________________
> Pkg-xfce-devel mailing list
> Pkg-xfce-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-xfce-devel

-- 
Yves-Alexis Perez
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-xfce-devel/attachments/20140119/5e411912/attachment.sig>



Reply to: