public inbox for cluster-cvs@sourceware.org help / color / mirror / Atom feed
From: Jim Meyering <meyering@fedoraproject.org> To: cluster-cvs-relay@redhat.com Subject: cluster: STABLE3 - src/clulib/ckpt_state.c (ds_key_init_nt): detect failed malloc Date: Thu, 25 Jun 2009 09:02:00 -0000 [thread overview] Message-ID: <20090625090141.C2346120380@lists.fedorahosted.org> (raw) 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);
reply other threads:[~2009-06-25 9:02 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20090625090141.C2346120380@lists.fedorahosted.org \ --to=meyering@fedoraproject.org \ --cc=cluster-cvs-relay@redhat.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).