diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-03-14 15:46:31 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-03-14 15:46:31 +0000 |
commit | eda5581788b648ccde1a8fd83f166ac89e948983 (patch) | |
tree | 2ed7dbf5ff57cc2323e2ad3c6c682c8016a8ff46 /nuttx/netutils/tftpc | |
parent | 15e8075f78f2f1cb90cd3d31451dd0605805e64f (diff) | |
download | px4-nuttx-eda5581788b648ccde1a8fd83f166ac89e948983.tar.gz px4-nuttx-eda5581788b648ccde1a8fd83f166ac89e948983.tar.bz2 px4-nuttx-eda5581788b648ccde1a8fd83f166ac89e948983.zip |
Changes for clean compilation with ZDS
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1603 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/netutils/tftpc')
-rw-r--r-- | nuttx/netutils/tftpc/tftpc_get.c | 2 |
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 */ |