summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/ftp/ftp.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c
index 3f01ea7896..970ba8f387 100644
--- a/ext/ftp/ftp.c
+++ b/ext/ftp/ftp.c
@@ -321,11 +321,7 @@ ftp_login(ftpbuf_t *ftp, const char *user, const char *pass)
i = php_poll2(&p, 1, 300);
- if (i > 0) {
- retry = 1;
- } else {
- retry = 0;
- }
+ retry = i > 0;
}
break;