Skip to content

Commit 1494298

Browse files
committed
Minor Coverity tweaks
1 parent 9976b5c commit 1494298

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
@@ -1643,7 +1643,7 @@ ftp_genlist(ftpbuf_t *ftp, const char *cmd, const char *path TSRMLS_DC)
16431643
if (ftp->resp == 226) {
16441644
ftp->data = data_close(ftp, data);
16451645
php_stream_close(tmpstream);
1646-
return ecalloc(1, sizeof(char**));
1646+
return ecalloc(1, sizeof(char*));
16471647
}
16481648

16491649
/* pull data buffer into tmpfile */
@@ -1671,11 +1671,11 @@ ftp_genlist(ftpbuf_t *ftp, const char *cmd, const char *path TSRMLS_DC)
16711671
}
16721672
}
16731673

1674-
ftp->data = data = data_close(ftp, data);
1674+
ftp->data = data_close(ftp, data);
16751675

16761676
php_stream_rewind(tmpstream);
16771677

1678-
ret = safe_emalloc((lines + 1), sizeof(char**), size * sizeof(char*));
1678+
ret = safe_emalloc((lines + 1), sizeof(char*), size * sizeof(char*));
16791679

16801680
entry = ret;
16811681
text = (char*) (ret + lines + 1);

0 commit comments

Comments
 (0)