Re: [PATCH tabled] server/bucket.c: don't deref NULL upon failed malloc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 23 Sep 2010 12:53:06 +0200
Jim Meyering <jim@xxxxxxxxxxxx> wrote:

> I factored out the append_const definition to avoid
> having to wrap the long lines with the increased indentation.

>  	p = s;
> 
> +#define append_const(buf, c) \
> +  do { memcpy(buf, c, sizeof(c)-1); (buf) += sizeof(c)-1; } while (0)
> +
>  	tmpl = pfx_list;
>  	while (tmpl) {

Dunno about Jeff, but I would definitely put an #undef to it
after the loop, just in case.

-- Pete
--
To unsubscribe from this list: send the line "unsubscribe hail-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Fedora Clound]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux