projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6ea537
)
dnsproxy: Avoid useless memset
author
Lucas De Marchi
<lucas.demarchi@profusion.mobi>
Wed, 23 May 2012 18:00:09 +0000
(15:00 -0300)
committer
Patrik Flykt
<patrik.flykt@linux.intel.com>
Mon, 28 May 2012 13:23:21 +0000
(16:23 +0300)
src/dnsproxy.c
patch
|
blob
|
history
diff --git
a/src/dnsproxy.c
b/src/dnsproxy.c
index 83ec419eac5faf95ee2f6eadccfb3bad2d3f7212..6a9b1381373a13b7000aabe212bd0a87db11de20 100644
(file)
--- a/
src/dnsproxy.c
+++ b/
src/dnsproxy.c
@@
-2272,7
+2272,7
@@
static int parse_request(unsigned char *buf, int len,
if (hdr->qr != 0 || qdcount != 1)
return -EINVAL;
-
memset(name, 0, size)
;
+
name[0] = '\0'
;
ptr = buf + sizeof(struct domain_hdr);
remain = len - sizeof(struct domain_hdr);