From: amosjeffries <> Date: Wed, 26 Sep 2007 09:03:22 +0000 (+0000) Subject: RFC1035 minor cleanups. Some ptr NULL initialisation. X-Git-Tag: SQUID_3_0_RC1~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5457e603812fd6be65b56faf4da92f0b190a99e6;p=thirdparty%2Fsquid.git RFC1035 minor cleanups. Some ptr NULL initialisation. --- diff --git a/lib/rfc1035.c b/lib/rfc1035.c index a9b68248e9..307460b472 100644 --- a/lib/rfc1035.c +++ b/lib/rfc1035.c @@ -1,6 +1,6 @@ /* - * $Id: rfc1035.c,v 1.48 2007/09/21 15:16:12 hno Exp $ + * $Id: rfc1035.c,v 1.49 2007/09/26 03:03:22 amosjeffries Exp $ * * Low level DNS protocol routines * AUTHOR: Duane Wessels @@ -578,9 +578,9 @@ rfc1035MessageUnpack(const char *buf, unsigned int off = 0; unsigned int i, j; unsigned int nr = 0; - rfc1035_message *msg; - rfc1035_rr *recs; - rfc1035_query *querys; + rfc1035_message *msg = NULL; + rfc1035_rr *recs = NULL; + rfc1035_query *querys = NULL; msg = (rfc1035_message*)xcalloc(1, sizeof(*msg)); if (rfc1035HeaderUnpack(buf + off, sz - off, &off, msg)) { RFC1035_UNPACK_DEBUG;