public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: STABLE3 - src/clulib/ckpt_state.c (ds_key_init_nt): detect failed malloc
@ 2009-06-25 9:02 Jim Meyering
0 siblings, 0 replies; only message in thread
From: Jim Meyering @ 2009-06-25 9:02 UTC (permalink / raw)
To: cluster-cvs-relay
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=2088d2121cf0a8ff5ea0e021b8b76d94d20b08d0
Commit: 2088d2121cf0a8ff5ea0e021b8b76d94d20b08d0
Parent: 3cf06ec85044817b96fa4c778a959b10c6f71737
Author: Jim Meyering <meyering@redhat.com>
AuthorDate: Tue Jun 23 00:04:33 2009 +0200
Committer: Jim Meyering <meyering@redhat.com>
CommitterDate: Thu Jun 25 10:59:57 2009 +0200
src/clulib/ckpt_state.c (ds_key_init_nt): detect failed malloc
---
rgmanager/src/clulib/ckpt_state.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/rgmanager/src/clulib/ckpt_state.c b/rgmanager/src/clulib/ckpt_state.c
index fd85aee..766097b 100644
--- a/rgmanager/src/clulib/ckpt_state.c
+++ b/rgmanager/src/clulib/ckpt_state.c
@@ -70,6 +70,7 @@ ds_key_init_nt(char *keyid, int maxsize, int timeout)
}
newnode = malloc(sizeof(*newnode));
+ // FIXME: detect failed malloc
memset(newnode,0,sizeof(*newnode));
snprintf((char *)newnode->kn_cpname.value, SA_MAX_NAME_LENGTH-1,
"%s", keyid);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-06-25 9:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-25 9:02 cluster: STABLE3 - src/clulib/ckpt_state.c (ds_key_init_nt): detect failed malloc Jim Meyering
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).