summaryrefslogtreecommitdiff
path: root/sapi/cli
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-04-15 11:35:13 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-04-15 11:35:13 +0200
commit7f6c22cb3d207db0937a8f67e51bee031ba47314 (patch)
tree1433e583f322bc6ab0d67f6cf4809afd74928b73 /sapi/cli
parent908660c1d778186f661d97c7051c8f2891e2e602 (diff)
downloadphp-git-7f6c22cb3d207db0937a8f67e51bee031ba47314.tar.gz
Fix last maybe uninit warnings on 7.4
Most of these only occur under GCC 5. Not fond of all the workarounds (especially the PDO one), but it gets us a clean build...
Diffstat (limited to 'sapi/cli')
-rw-r--r--sapi/cli/php_cli_server.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sapi/cli/php_cli_server.c b/sapi/cli/php_cli_server.c
index 46ba86e9c2..6889278bca 100644
--- a/sapi/cli/php_cli_server.c
+++ b/sapi/cli/php_cli_server.c
@@ -1448,6 +1448,7 @@ static void normalize_vpath(char **retval, size_t *retval_len, const char *vpath
char *p;
*retval = NULL;
+ *retval_len = 0;
decoded_vpath = pestrndup(vpath, vpath_len, persistent);
if (!decoded_vpath) {