summaryrefslogtreecommitdiff
path: root/ext/ftp
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2000-10-27 20:47:36 +0000
committerfoobar <sniper@php.net>2000-10-27 20:47:36 +0000
commit11af318a6213a71b09d564ef0ba249db980fa986 (patch)
treee3d1c8143dea8ef0b47eda6c9eec6a9f092351c4 /ext/ftp
parentd313ad8bf5a0a2712c6ae1f52f259ecad9bbf17d (diff)
downloadphp-git-11af318a6213a71b09d564ef0ba249db980fa986.tar.gz
Fixes PR: 7245
Diffstat (limited to 'ext/ftp')
-rw-r--r--ext/ftp/ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c
index a750265fcc..b2a091a710 100644
--- a/ext/ftp/ftp.c
+++ b/ext/ftp/ftp.c
@@ -732,7 +732,7 @@ ftp_putcmd(ftpbuf_t *ftp, const char *cmd, const char *args)
char *data;
/* build the output buffer */
- if (args) {
+ if (args && args[0]) {
/* "cmd args\r\n\0" */
if (strlen(cmd) + strlen(args) + 4 > FTP_BUFSIZE)
return 0;