com php-src: Fixed Conditional jump or move depends on uninitialised value: ext/sqlite3/sqlite3.c
| From: | Anatol Belski | Date: | Sun, 18 Oct 2015 10:36:16 +0000 |
| Subject: | com php-src: Fixed Conditional jump or move depends on uninitialised value: ext/sqlite3/sqlite3.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-89516@lists.php.net to get a copy of this message | ||
Commit: b3cf4a2dc0406df3ec9b2bc1b3747b68e2891825
Author: Xinchen Hui <laruence@gmail.com> Wed, 14 Oct 2015 10:19:57 +0800
Committer: Anatol Belski <ab@php.net> Sun, 18 Oct 2015 12:36:16 +0200
Parents: 332cf3cf56921d18ff581fc3fc9ae25f92f79569
Branches: PHP-7.0.0
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b3cf4a2dc0406df3ec9b2bc1b3747b68e2891825
Log:
Fixed Conditional jump or move depends on uninitialised value
Changed paths:
M ext/sqlite3/sqlite3..c
Diff:
diff --git a/ext/sqlite3/sqlite3.c b/ext/sqlite3/sqlite3..c
index cc9c5f5..12340f9 100644
--- a/ext/sqlite3/sqlite3.c
+++ b/ext/sqlite3/sqlite3.c
@@ -871,6 +871,8 @@ static int php_sqlite3_callback_compare(void *coll, int a_len, const void *a, in
if ((ret = zend_call_function(&collation->fci.fci, &collation->fci.fcc)) ==
FAILURE) {
php_error_docref(NULL, E_WARNING, "An error occurred while invoking the compare
callback");
}
+ } else {
+ ZVAL_UNDEF(&retval);
}
zval_ptr_dtor(&zargs[0]);