summaryrefslogtreecommitdiff
path: root/ext/sqlite3/sqlite3.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2011-08-10 15:30:07 (GMT)
committerIlia Alshanetsky <iliaa@php.net>2011-08-10 15:30:07 (GMT)
commitd73bad2f93433c7063879d885a33db0fbf8a5287 (patch)
treeb6616262263807bc5715761a4236ea586fb4c746 /ext/sqlite3/sqlite3.c
parente289cf7267a7579368b397cd966bc140041c116d (diff)
downloadphp-d73bad2f93433c7063879d885a33db0fbf8a5287.tar.gz
Fixed memset usage (identified by coverity)
Diffstat (limited to 'ext/sqlite3/sqlite3.c')
-rw-r--r--ext/sqlite3/sqlite3.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/sqlite3/sqlite3.c b/ext/sqlite3/sqlite3.c
index a4f35ae..dbb8171 100644
--- a/ext/sqlite3/sqlite3.c
+++ b/ext/sqlite3/sqlite3.c
@@ -2002,7 +2002,7 @@ static zend_object_value php_sqlite3_object_new(zend_class_entry *class_type TSR
/* Allocate memory for it */
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;
/* 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 */
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;
@@ -2046,7 +2046,7 @@ static zend_object_value php_sqlite3_result_object_new(zend_class_entry *class_t
/* Allocate memory for it */
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->is_prepared_statement = 0;