diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-02-10 19:11:56 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-02-10 19:11:56 -0600 |
commit | 797e41438176de465272bef182e035cd0fe5884a (patch) | |
tree | 3af4825ad5b2c3bd579305d025c35d6a3b96c9a1 /apps/netutils | |
parent | 6db1f6f71c8867cbae3a2c5597b01f321064a370 (diff) | |
download | nuttx-797e41438176de465272bef182e035cd0fe5884a.tar.gz nuttx-797e41438176de465272bef182e035cd0fe5884a.tar.bz2 nuttx-797e41438176de465272bef182e035cd0fe5884a.zip |
More changes to reduce complaints from CppCheck. Some latent bugs fixes, but probably some new typos introduced
Diffstat (limited to 'apps/netutils')
-rw-r--r-- | apps/netutils/codecs/md5.c | 2 | ||||
-rw-r--r-- | apps/netutils/webclient/webclient.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/netutils/codecs/md5.c b/apps/netutils/codecs/md5.c index 0441f4147..a6731135f 100644 --- a/apps/netutils/codecs/md5.c +++ b/apps/netutils/codecs/md5.c @@ -263,7 +263,7 @@ void MD5Final(unsigned char digest[16], struct MD5Context *ctx) MD5Transform(ctx->buf, (uint32_t *) ctx->in); byteReverse((unsigned char *)ctx->buf, 4); memcpy(digest, ctx->buf, 16); - memset(ctx, 0, sizeof(ctx)); /* In case it's sensitive */ + memset(ctx, 0, sizeof(struct MD5Contex)); /* In case it's sensitive */ } /**************************************************************************** diff --git a/apps/netutils/webclient/webclient.c b/apps/netutils/webclient/webclient.c index 927993179..d233c3441 100644 --- a/apps/netutils/webclient/webclient.c +++ b/apps/netutils/webclient/webclient.c @@ -412,7 +412,7 @@ static int wget_base(FAR const char *url, FAR char *buffer, int buflen, char *dest,post_size[8]; int sockfd; int len,post_len; - int ret = OK; + int ret; /* Initialize the state structure */ |