diff options
author | Sean Bright <elixer@php.net> | 2001-12-21 03:50:07 +0000 |
---|---|---|
committer | Sean Bright <elixer@php.net> | 2001-12-21 03:50:07 +0000 |
commit | 25058db066f68f62854cdbce12b800df9d75d698 (patch) | |
tree | 6bd79ad1670b38b8f7a368ecf1491d98ee7a8f86 | |
parent | 33730ca2b9273fe6de184129a1fcdb34ec456030 (diff) | |
download | php-git-25058db066f68f62854cdbce12b800df9d75d698.tar.gz |
Use memset() instead.
-rw-r--r-- | ext/standard/file.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/standard/file.c b/ext/standard/file.c index 389fed1bd4..48709bfb2f 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -296,7 +296,10 @@ PHP_FUNCTION(get_meta_tags) 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", |