mirror of
https://github.com/php/php-src.git
synced 2025-08-17 14:38:49 +02:00
Fixed memset usage (identified by coverity)
This commit is contained in:
parent
d627115800
commit
38f05cc775
1 changed files with 3 additions and 3 deletions
|
@ -2002,7 +2002,7 @@ static zend_object_value php_sqlite3_object_new(zend_class_entry *class_type TSR
|
||||||
|
|
||||||
/* Allocate memory for it */
|
/* Allocate memory for it */
|
||||||
intern = emalloc(sizeof(php_sqlite3_db_object));
|
intern = emalloc(sizeof(php_sqlite3_db_object));
|
||||||
memset(&intern->zo, 0, sizeof(php_sqlite3_db_object));
|
memset(intern, 0, sizeof(php_sqlite3_db_object));
|
||||||
intern->exception = 0;
|
intern->exception = 0;
|
||||||
|
|
||||||
/* Need to keep track of things to free */
|
/* Need to keep track of things to free */
|
||||||
|
@ -2025,7 +2025,7 @@ static zend_object_value php_sqlite3_stmt_object_new(zend_class_entry *class_typ
|
||||||
|
|
||||||
/* Allocate memory for it */
|
/* Allocate memory for it */
|
||||||
intern = emalloc(sizeof(php_sqlite3_stmt));
|
intern = emalloc(sizeof(php_sqlite3_stmt));
|
||||||
memset(&intern->zo, 0, sizeof(php_sqlite3_stmt));
|
memset(intern, 0, sizeof(php_sqlite3_stmt));
|
||||||
|
|
||||||
intern->db_obj_zval = NULL;
|
intern->db_obj_zval = NULL;
|
||||||
|
|
||||||
|
@ -2046,7 +2046,7 @@ static zend_object_value php_sqlite3_result_object_new(zend_class_entry *class_t
|
||||||
|
|
||||||
/* Allocate memory for it */
|
/* Allocate memory for it */
|
||||||
intern = emalloc(sizeof(php_sqlite3_result));
|
intern = emalloc(sizeof(php_sqlite3_result));
|
||||||
memset(&intern->zo, 0, sizeof(php_sqlite3_result));
|
memset(intern, 0, sizeof(php_sqlite3_result));
|
||||||
|
|
||||||
intern->complete = 0;
|
intern->complete = 0;
|
||||||
intern->is_prepared_statement = 0;
|
intern->is_prepared_statement = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue