summaryrefslogtreecommitdiff
path: root/nuttx/netutils/tftpc/tftpc_get.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/netutils/tftpc/tftpc_get.c')
-rw-r--r--nuttx/netutils/tftpc/tftpc_get.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/netutils/tftpc/tftpc_get.c b/nuttx/netutils/tftpc/tftpc_get.c
index abd34db21..b48c657c1 100644
--- a/nuttx/netutils/tftpc/tftpc_get.c
+++ b/nuttx/netutils/tftpc/tftpc_get.c
@@ -155,7 +155,7 @@ int tftpget(const char *remote, const char *local, in_addr_t addr, boolean binar
int sd; /* Socket descriptor for socket I/O */
int fd; /* File descriptor for file I/O */
int retry; /* Retry counter */
- int nbytesrecvd; /* The number of bytes received in the packet */
+ int nbytesrecvd = 0; /* The number of bytes received in the packet */
int ndatabytes; /* The number of data bytes received */
int result = ERROR; /* Assume failure */
int ret; /* Generic return status */