diff options
Diffstat (limited to 'ext/ftp')
-rw-r--r-- | ext/ftp/ftp.c | 2 |
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; |