aboutsummaryrefslogtreecommitdiff
path: root/lib/tftp.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-01-09 19:11:56 +0000
committerYang Tse <yangsita@gmail.com>2008-01-09 19:11:56 +0000
commit15f832d1c2c14327b971cacc200d48fce3077043 (patch)
tree8aa3e487fa4586c94dcc6ca1a85fedc6fa480b3c /lib/tftp.c
parentc249a8aa1b3cdd4a706820092542bb6237596240 (diff)
fix compiler warning
Diffstat (limited to 'lib/tftp.c')
-rw-r--r--lib/tftp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/tftp.c b/lib/tftp.c
index fcc193da3..69e3aba13 100644
--- a/lib/tftp.c
+++ b/lib/tftp.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -613,7 +613,8 @@ static CURLcode tftp_connect(struct connectdata *conn, bool *done)
sessionhandle, deal with it */
Curl_reset_reqproto(conn);
- if(!(state = conn->data->state.proto.tftp)) {
+ state = conn->data->state.proto.tftp;
+ if(!state) {
state = conn->data->state.proto.tftp = calloc(sizeof(tftp_state_data_t),
1);
if(!state)