aboutsummaryrefslogtreecommitdiffstats
path: root/ftp.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-11-29 09:34:14 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-11-29 09:34:14 +0000
commitc33cdfcd56cf8bc964bb0e82684fedc7f532d259 (patch)
tree4696c5ee6f959dfbe0b7da9bf58e4c23c27cd584 /ftp.c
parent[w3m-dev 02579] Use environment variables CC, CFLAGS, LDFLAGS (diff)
downloadw3m-c33cdfcd56cf8bc964bb0e82684fedc7f532d259.tar.gz
w3m-c33cdfcd56cf8bc964bb0e82684fedc7f532d259.zip
[w3m-dev 02584] code cleanup again
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to '')
-rw-r--r--ftp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ftp.c b/ftp.c
index 93c3382..5c5e150 100644
--- a/ftp.c
+++ b/ftp.c
@@ -1,4 +1,4 @@
-/* $Id: ftp.c,v 1.6 2001/11/24 02:01:26 ukai Exp $ */
+/* $Id: ftp.c,v 1.7 2001/11/29 09:34:14 ukai Exp $ */
#include <stdio.h>
#include <pwd.h>
#include <Str.h>
@@ -121,9 +121,9 @@ FtpLogin(FTP * ftp_return, char *host, char *user, char *pass)
struct hostent *sockent;
Str tmp2 = Strnew_charp(pass);
- if (sockent = gethostbyaddr((char *)&sockname.sin_addr,
- sizeof(sockname.sin_addr),
- sockname.sin_family))
+ if ((sockent = gethostbyaddr((char *)&sockname.sin_addr,
+ sizeof(sockname.sin_addr),
+ sockname.sin_family)))
Strcat_charp(tmp2, sockent->h_name);
else
Strcat_m_charp(tmp2, "[", inet_ntoa(sockname.sin_addr),
@@ -401,7 +401,7 @@ openFTP(ParsedURL *pu)
char *qdir;
char **flist;
int i, nfile, nfile_max = 100;
- Str pwd;
+ Str pwd = NULL;
int add_auth_cookie_flag;
char *realpath = NULL;
#ifdef JP_CHARSET