summaryrefslogtreecommitdiff
path: root/ext/sqlite3/sqlite3.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2015-09-09 18:00:04 +0800
committerXinchen Hui <laruence@gmail.com>2015-09-09 18:00:04 +0800
commit59e8eae4b004c97e1f8f4b16e5a8f0fc344080b5 (patch)
treebcf157be787053c406deabbe5f34d3f013c691ae /ext/sqlite3/sqlite3.c
parent67d1a478874138ce5979d5988ccf4f7d937e95a6 (diff)
downloadphp-git-59e8eae4b004c97e1f8f4b16e5a8f0fc344080b5.tar.gz
Useless ZVAL_UNDEF
Diffstat (limited to 'ext/sqlite3/sqlite3.c')
-rw-r--r--ext/sqlite3/sqlite3.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/sqlite3/sqlite3.c b/ext/sqlite3/sqlite3.c
index 07e37a897e..16d37aea9d 100644
--- a/ext/sqlite3/sqlite3.c
+++ b/ext/sqlite3/sqlite3.c
@@ -848,7 +848,6 @@ static int php_sqlite3_callback_compare(void *coll, int a_len, const void *a, in
zval retval;
int ret;
- ZVAL_UNDEF(&retval);
collation->fci.fci.size = (sizeof(collation->fci.fci));
collation->fci.fci.function_table = EG(function_table);
ZVAL_COPY_VALUE(&collation->fci.fci.function_name, &collation->cmp_func);
@@ -881,7 +880,7 @@ static int php_sqlite3_callback_compare(void *coll, int a_len, const void *a, in
// (the result of a comparison, i.e. most likely -1, 0, or 1)
//I suppose we could accept any scalar return type, though.
php_error_docref(NULL, E_WARNING, "An error occurred while invoking the compare callback (invalid return type). Collation behaviour is undefined.");
- }else{
+ } else {
ret = Z_LVAL(retval);
}