[Ocfs2-commits] mfasheh commits r1298 - trunk/src
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Thu Jul 22 20:24:45 CDT 2004
Author: mfasheh
Date: 2004-07-22 19:24:43 -0500 (Thu, 22 Jul 2004)
New Revision: 1298
Modified:
trunk/src/vote.c
Log:
* memset our string in ocfs_node_map_stringify.
Modified: trunk/src/vote.c
===================================================================
--- trunk/src/vote.c 2004-07-22 21:23:56 UTC (rev 1297)
+++ trunk/src/vote.c 2004-07-23 00:24:43 UTC (rev 1298)
@@ -1054,6 +1054,8 @@
if (!(*str))
return -ENOMEM;
+ memset(*str, 0, strlen("123 ") * map->num_nodes);
+
s = *str;
for (i=0; i<map->num_nodes; i++) {
if (ocfs_node_map_test_bit(map, i)) {
More information about the Ocfs2-commits
mailing list