Skip to content

Commit 265c88b

Browse files
committed
Don't initialise pointers to zend_stat_t
1 parent 2ecd46f commit 265c88b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

ext/standard/pageinfo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
/* {{{ php_statpage */
5151
PHPAPI void php_statpage(void)
5252
{
53-
zend_stat_t *pstat = {0};
53+
zend_stat_t *pstat = NULL;
5454

5555
pstat = sapi_get_stat();
5656

main/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1397,7 +1397,7 @@ static ZEND_COLD void php_error_cb(int orig_type, zend_string *error_filename, c
13971397
/* {{{ php_get_current_user */
13981398
PHPAPI char *php_get_current_user(void)
13991399
{
1400-
zend_stat_t *pstat = {0};
1400+
zend_stat_t *pstat = NULL;
14011401

14021402
if (SG(request_info).current_user) {
14031403
return SG(request_info).current_user;

win32/glob.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ g_opendir(str, pglob)
850850
static int
851851
g_lstat(fn, sb, pglob)
852852
register Char *fn;
853-
zend_stat_t *sb = {0};
853+
zend_stat_t *sb = NULL;
854854
glob_t *pglob;
855855
{
856856
char buf[MAXPATHLEN];
@@ -865,7 +865,7 @@ g_lstat(fn, sb, pglob)
865865
static int
866866
g_stat(fn, sb, pglob)
867867
register Char *fn;
868-
zend_stat_t *sb = {0};
868+
zend_stat_t *sb = NULL;
869869
glob_t *pglob;
870870
{
871871
char buf[MAXPATHLEN];

0 commit comments

Comments
 (0)