cvs: pear /PECL/printer printer.c
| From: | Frank M. Kromann | Date: | Fri, 17 May 2002 18:49:43 +0000 |
| Subject: | cvs: pear /PECL/printer printer.c | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-3909@lists.php.net to get a copy of this message | ||
fmk Fri May 17 14:49:43 2002 EDT
Modified files:
/pear/PECL/printer printer.c
Log:
Set DC-pointer to NULL after deleting. Thus killing the notice when creating a new DC.
Index: pear/PECL/printer/printer.c
diff -u pear/PECL/printer/printer.c:1.22 pear/PECL/printer/printer.c:1.23
--- pear/PECL/printer/printer.c:1.22 Tue Dec 11 10:30:13 2001
+++ pear/PECL/printer/printer.c Fri May 17 14:49:42 2002
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: printer.c,v 1.22 2001/12/11 15:30:13 sebastian Exp $ */
+/* $Id: printer.c,v 1.23 2002/05/17 18:49:42 fmk Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -111,7 +111,7 @@
php_info_print_table_row(2, "Printer Support", "enabled");
php_info_print_table_row(2, "Default printing device", PRINTERG(default_printer) ?
PRINTERG(default_printer) : "<b>not detected</b>");
php_info_print_table_row(2, "Module state", "working");
- php_info_print_table_row(2, "RCS Version", "$Id: printer.c,v 1.22 2001/12/11
15:30:13 sebastian Exp $");
+ php_info_print_table_row(2, "RCS Version", "$Id: printer.c,v 1.23 2002/05/17
18:49:42 fmk Exp $");
php_info_print_table_end();
DISPLAY_INI_ENTRIES();
}
@@ -665,6 +665,7 @@
if( resource->dc != NULL ) {
DeleteDC(resource->dc);
+ resource->dc = NULL;
RETURN_TRUE;
}
else {