Revision: 140638 https://trac.macports.org/changeset/140638 Author: cal@macports.org Date: 2015-09-28 13:38:28 -0700 (Mon, 28 Sep 2015) Log Message: ----------- base: tracelib: Add explicit local variable init This should not have been not necessary, because len is initialized by the first call to recv(2), but better be safe then sorry. Additionally, this looks cleaner. Modified Paths: -------------- trunk/base/src/pextlib1.0/tracelib.c Modified: trunk/base/src/pextlib1.0/tracelib.c =================================================================== --- trunk/base/src/pextlib1.0/tracelib.c 2015-09-28 20:36:29 UTC (rev 140637) +++ trunk/base/src/pextlib1.0/tracelib.c 2015-09-28 20:38:28 UTC (rev 140638) @@ -295,7 +295,7 @@ static int process_line(int sock) { char *f; char buf[BUFSIZE]; - uint32_t len; + uint32_t len = 0; ssize_t ret; if ((ret = recv(sock, &len, sizeof(len), MSG_WAITALL)) != sizeof(len)) {