Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: Pierre Muller <pierre.muller@ics-cnrs.unistra.fr>
Cc: gdb-patches@sourceware.org, rustyBSD@gmx.fr
Subject: Re: [PATCH] Fix readlink calls in GDB
Date: Mon, 26 Nov 2012 16:54:00 -0000	[thread overview]
Message-ID: <50B39E17.9010605@redhat.com> (raw)
In-Reply-To: <000301cdcbf3$c49234e0$4db69ea0$@muller@ics-cnrs.unistra.fr>

On 11/26/2012 04:33 PM, Pierre Muller wrote:

>   Thank you for the answers,
> I am sorry to have wasted your time :(
>   I didn't know calloc was zeroing data...

No problem.

>   Does that mean that
>    name2 = xzalloc (MAXPATHLEN);
> or
>    name2 = xcalloc (MAXPATHLEN, 1);
>
> 
> could have replaced the two lines:
>>   name2 = xmalloc (MAXPATHLEN);
>>   memset (name2, 0, MAXPATHLEN);

Yep.

-- 
Pedro Alves


      reply	other threads:[~2012-11-26 16:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-26 14:20 Pedro Alves
2012-11-26 14:43 ` Pierre Muller
2012-11-26 15:16   ` Pedro Alves
2012-11-26 15:31     ` Pierre Muller
2012-11-26 16:12       ` Pedro Alves
2012-11-26 16:33         ` Pierre Muller
2012-11-26 16:54           ` Pedro Alves [this message]

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=50B39E17.9010605@redhat.com \
    --to=palves@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=pierre.muller@ics-cnrs.unistra.fr \
    --cc=rustyBSD@gmx.fr \
    /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: link
Be 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