Module Name:    src
Committed By:   christos
Date:           Thu Nov 14 01:14:39 UTC 2013

Modified Files:
        src/external/gpl3/gdb/dist/gdb/common: agent.c

Log Message:
CID 1102811: Unitialized variable. Don't pass random sun_len for the BSD's,
zero the whole structure as recommended for portability.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gdb/dist/gdb/common/agent.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gdb/dist/gdb/common/agent.c
diff -u src/external/gpl3/gdb/dist/gdb/common/agent.c:1.1.1.1 src/external/gpl3/gdb/dist/gdb/common/agent.c:1.2
--- src/external/gpl3/gdb/dist/gdb/common/agent.c:1.1.1.1	Thu Oct  3 11:51:00 2013
+++ src/external/gpl3/gdb/dist/gdb/common/agent.c	Wed Nov 13 20:14:39 2013
@@ -175,6 +175,7 @@ gdb_connect_sync_socket (int pid)
       return -1;
     }
 
+  memset(&addr, 0, sizeof(addr));
   addr.sun_family = AF_UNIX;
 
   res = xsnprintf (addr.sun_path, UNIX_PATH_MAX, "%s", path);

Reply via email to