diff options
author | Daniel Stenberg <daniel@haxx.se> | 2010-07-30 22:36:31 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-07-30 22:36:31 +0200 |
commit | 314117cbf180dc6bc333621052f6d8c2e9a25ac7 (patch) | |
tree | 28212f40579412fc90900e4f728b70f15418c7be | |
parent | d296dd4ee87426bc6982255d7a966fd8c4b7e989 (diff) |
smtp_connect: always provide host name buffer
Previously the host name buffer was only used if gethostname() exists,
but since we converted that into a curl private function that function
always exists and will be used so the buffer needs to exist for all
cases/systems.
-rw-r--r-- | lib/smtp.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/smtp.c b/lib/smtp.c index 1133fe527..c42b7208f 100644 --- a/lib/smtp.c +++ b/lib/smtp.c @@ -1042,10 +1042,7 @@ static CURLcode smtp_connect(struct connectdata *conn, struct pingpong *pp=&smtpc->pp; const char *path = conn->data->state.path; int len; - -#ifdef HAVE_GETHOSTNAME - char localhost[1024 + 1]; -#endif + char localhost[1024 + 1]; *done = FALSE; /* default to not done yet */ |