aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-05-09 13:02:53 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-05-09 13:02:53 +0000
commitc811e1ce70add2bfecb97732ffc4644a2e6ea752 (patch)
treea8908dcc22b0955984462f8b05c8cee57934bbb4 /lib
parent77475f2ad02ca03b52255b39e1255e048f449f07 (diff)
oops, could return an uninitialized variable
Diffstat (limited to 'lib')
-rw-r--r--lib/tftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tftp.c b/lib/tftp.c
index 568d12cbb..7a347b5c3 100644
--- a/lib/tftp.c
+++ b/lib/tftp.c
@@ -258,7 +258,7 @@ static CURLcode tftp_send_first(tftp_state_data_t *state, tftp_event_t event)
name so we skip the always-present first letter of the path string. */
char *filename = &state->conn->path[1];
struct SessionHandle *data = state->conn->data;
- CURLcode res;
+ CURLcode res = CURLE_OK;
/* Set ascii mode if -B flag was used */
if(data->set.ftp_ascii)