On Mon, Apr 25, 2011 at 00:08, Pierre Joye <paj...@php.net> wrote:
> pajoye                                   Sun, 24 Apr 2011 22:08:11 +0000
>
> Revision: http://svn.php.net/viewvc?view=revision&revision=310457
>
> Log:
> - fix use of unitiliazed var
>
> Changed paths:
>    U   php/php-src/branches/PHP_5_3/ext/tidy/tidy.c
>    U   php/php-src/trunk/ext/tidy/tidy.c
>
> Modified: php/php-src/branches/PHP_5_3/ext/tidy/tidy.c
> ===================================================================
> --- php/php-src/branches/PHP_5_3/ext/tidy/tidy.c        2011-04-24 20:47:22 
> UTC (rev 310456)
> +++ php/php-src/branches/PHP_5_3/ext/tidy/tidy.c        2011-04-24 22:08:11 
> UTC (rev 310457)
> @@ -985,10 +985,10 @@
>                case is_body_node:
>                        node = tidyGetBody(obj->ptdoc->doc);
>                        break;
> -       }
>
> -       if (!node) {
> -               RETURN_NULL();
> +               default:
> +                       RETURN_NULL();
> +                       break;


What happens if those functions actually fail?

-Hannes

Reply via email to