RE: [PHP-CVS] cvs: php4 /ext/standard file.c
| From: | Sean R. Bright | Date: | Fri, 21 Dec 2001 03:44:43 +0000 |
| Subject: | RE: [PHP-CVS] cvs: php4 /ext/standard file.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-8741@lists.php.net to get a copy of this message | ||
Better?
> -----Original Message-----
> From: Sean Bright [mailto:elixer@erols.com]
> Sent: Thursday, December 20, 2001 10:50 PM
> To: php-cvs@lists.php.net
> Subject: [PHP-CVS] cvs: php4 /ext/standard file.c
>
>
> elixer Thu Dec 20 22:50:08 2001 EDT
>
> Modified files:
> /php4/ext/standard file.c
> Log:
> Use memset() instead.
>
>
> Index: php4/ext/standard/file.c
> diff -u php4/ext/standard/file.c:1.201 php4/ext/standard/file.c:1.202
> --- php4/ext/standard/file.c:1.201 Thu Dec 20 22:10:11 2001
> +++ php4/ext/standard/file.c Thu Dec 20 22:50:07 2001
> @@ -21,7 +21,7 @@
>
> +-------------------------------------------------------------
> ---------+
> */
>
> -/* $Id: file.c,v 1.201 2001/12/21 03:10:11 elixer Exp $ */
> +/* $Id: file.c,v 1.202 2001/12/21 03:50:07 elixer Exp $ */
>
> /* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */
>
> @@ -296,7 +296,10 @@
> int saw_name = 0, saw_content = 0;
> char *name = NULL, *value = NULL, *temp = NULL;
> php_meta_tags_token tok, tok_last;
> - php_meta_tags_data md = {NULL, 0, 0, 0, 0, NULL, NULL, 0, 0};
> + php_meta_tags_data md;
> +
> + /* Initiailize our structure */
> + memset(&md, 0, sizeof(md));
>
> /* Parse arguments */
> if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|b",
>
>
>
> --
> PHP CVS Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-cvs-unsubscribe@lists.php.net
> For additional commands, e-mail: php-cvs-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>