Skip to content

Commit c5e5a6c

Browse files
committed
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4: Minor Coverity tweaks
2 parents 8aa19c9 + 1494298 commit c5e5a6c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/ftp/ftp.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1638,7 +1638,7 @@ ftp_genlist(ftpbuf_t *ftp, const char *cmd, const char *path TSRMLS_DC)
16381638
if (ftp->resp == 226) {
16391639
ftp->data = data_close(ftp, data);
16401640
php_stream_close(tmpstream);
1641-
return ecalloc(1, sizeof(char**));
1641+
return ecalloc(1, sizeof(char*));
16421642
}
16431643

16441644
/* pull data buffer into tmpfile */
@@ -1666,11 +1666,11 @@ ftp_genlist(ftpbuf_t *ftp, const char *cmd, const char *path TSRMLS_DC)
16661666
}
16671667
}
16681668

1669-
ftp->data = data = data_close(ftp, data);
1669+
ftp->data = data_close(ftp, data);
16701670

16711671
php_stream_rewind(tmpstream);
16721672

1673-
ret = safe_emalloc((lines + 1), sizeof(char**), size * sizeof(char*));
1673+
ret = safe_emalloc((lines + 1), sizeof(char*), size * sizeof(char*));
16741674

16751675
entry = ret;
16761676
text = (char*) (ret + lines + 1);

0 commit comments

Comments
 (0)