cvs: php-src /ext/tidy tidy.c
| From: | Nuno Lopes | Date: | Sat, 20 Jan 2007 12:27:55 +0000 |
| Subject: | cvs: php-src /ext/tidy tidy.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-42828@lists.php.net to get a copy of this message | ||
nlopess Sat Jan 20 12:27:55 2007 UTC
Modified files:
/php-src/ext/tidy tidy.c
Log:
MFB: fix crash
http://cvs.php.net/viewvc.cgi/php-src/ext/tidy/tidy.c?r1=1.108&r2=1.109&diff_format=u
Index: php-src/ext/tidy/tidy.c
diff -u php-src/ext/tidy/tidy.c:1.108 php-src/ext/tidy/tidy.c:1.109
--- php-src/ext/tidy/tidy.c:1.108 Fri Jan 19 18:57:06 2007
+++ php-src/ext/tidy/tidy.c Sat Jan 20 12:27:55 2007
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: tidy.c,v 1.108 2007/01/19 18:57:06 nlopess Exp $ */
+/* $Id: tidy.c,v 1.109 2007/01/20 12:27:55 nlopess Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -1040,7 +1040,7 @@
php_info_print_table_start();
php_info_print_table_header(2, "Tidy support", "enabled");
php_info_print_table_row(2, "libTidy Release", (char *)tidyReleaseDate());
- php_info_print_table_row(2, "Extension Version", PHP_TIDY_MODULE_VERSION " ($Id:
tidy.c,v 1.108 2007/01/19 18:57:06 nlopess Exp $)");
+ php_info_print_table_row(2, "Extension Version", PHP_TIDY_MODULE_VERSION " ($Id:
tidy.c,v 1.109 2007/01/20 12:27:55 nlopess Exp $)");
php_info_print_table_end();
DISPLAY_INI_ENTRIES();
@@ -1712,7 +1712,7 @@
{
TIDY_FETCH_ONLY_OBJECT;
- if (tidyGetNext(obj->node)) {
+ if (obj->node && tidyGetNext(obj->node)) {
RETURN_TRUE;
} else {
RETURN_FALSE;