diff options
author | Andrew Skalski <askalski@php.net> | 1999-09-21 23:37:26 +0000 |
---|---|---|
committer | Andrew Skalski <askalski@php.net> | 1999-09-21 23:37:26 +0000 |
commit | 709286c0d205cc6dff7b2d10c24131bdaf76bced (patch) | |
tree | 9641b0b8d4a5c6e1cf060aa4aea8381b8467f7d8 | |
parent | 773a26bb22fbe5ae92544f734b9b01ae3cbf1bdf (diff) | |
download | php-git-709286c0d205cc6dff7b2d10c24131bdaf76bced.tar.gz |
removed NULL reference
-rw-r--r-- | ext/ftp/php_ftp.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/ftp/php_ftp.c b/ext/ftp/php_ftp.c index ca5cdc1ccf..fdffdf7b15 100644 --- a/ext/ftp/php_ftp.c +++ b/ext/ftp/php_ftp.c @@ -117,10 +117,8 @@ PHP_FUNCTION(ftp_connect) /* connect */ ftp = ftp_open(arg1->value.str.val, 0); - if (ftp == NULL) { - php_error(E_WARNING, "ftp_connect: %s", ftp->inbuf); + if (ftp == NULL) RETURN_FALSE; - } id = php3_list_insert(ftp, le_ftpbuf); RETURN_LONG(id); |