summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <Alan.Coopersmith@sun.com>2006-06-26 17:52:33 +0000
committerAlan Coopersmith <Alan.Coopersmith@sun.com>2006-06-26 17:52:33 +0000
commitfc95d8ab441d8a8e2758740f29c317df2716e0a8 (patch)
tree896d22d4ced05789d5be33e5d769dbd868b0eaf4
parentc383755fbf73305995b0d6b3d23e6c816d21f0bc (diff)
From Patch #6046 <https://bugs.freedesktop.org/attachment.cgi?id=6046>
Ensure ai is initialized to NULL. (Peter Breitenlohner)
-rw-r--r--ChangeLog7
-rw-r--r--di/pm.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f83291a..4a410e2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-06-26 Alan Coopersmith <alan.coopersmith@sun.com>
+
+ * di/pm.c:
+ From Patch #6046 <https://bugs.freedesktop.org/attachment.cgi?id=6046>
+ Ensure ai is initialized to NULL. (Peter Breitenlohner)
+
+
2005-12-20 Kevin E. Martin <kem-at-freedesktop-dot-org>
* configure.ac:
diff --git a/di/pm.c b/di/pm.c
index fbe474c..a2472e5 100644
--- a/di/pm.c
+++ b/di/pm.c
@@ -383,7 +383,7 @@ PMprocessMessages (iceConn, clientData, opcode, length,
if (colon)
{
#if defined(IPv6) && defined(AF_INET6)
- struct addrinfo *ai, hints;
+ struct addrinfo *ai = NULL, hints;
Bool bracketed = False;
char canonaddr[INET6_ADDRSTRLEN];
int addrtype = AF_UNSPEC;