D]>
> Sent: Thursday, October 25, 2007 12:32 AM
> To: "Michael Schippling" <[EMAIL PROTECTED]>
> Subject: Re: [Tinyos-help] Dangling pointer in SF (C version)
>
> On 10/23/07, Michael Schippling <[EMAIL PROTECTED]> wrote:
> > If "serial_source&q
On 10/23/07, Michael Schippling <[EMAIL PROTECTED]> wrote:
> If "serial_source" has been typedefed to be a pointer,
> which is what the subsequent usage tends to indicate,
> then this _should_ allocate and init a block of whatever
> rather than just a pointer. If that is the case then it
> seems to
If "serial_source" has been typedefed to be a pointer,
which is what the subsequent usage tends to indicate,
then this _should_ allocate and init a block of whatever
rather than just a pointer. If that is the case then it
seems to be a poor naming choice. You'll have to chase
the dragon further up
Hi all,
I'm currently debugging strange error in serial forwarder (c version,
TinyOS 2.0.1), and I found this :
//
serialsource.c:273:
serial_source src = malloc(sizeof *src);
if (src)
{
memset(src, 0, sizeof *src);
src->fd = fd;
src->non_blocking = non_blocking;