Problem: string buffers aren't NULL checked

Have found some places where memory is allocated and not NULL checked.
I have not touched the auto generated engine for zgossip which is also not checking for NULL pointers from strdup.

Tests pass locally.
OK, made some comments. Overall, very nice. A few things to watch out for
next time. Thanks, nice work :)

On Sun, Nov 23, 2014 at 5:51 PM, Asmod4n <notifications@github.com> wrote:

> In src/zstr.c:
>
> >
> >  int
> >  zstr_sendm (void *dest, const char *string)
> >  {
> >      assert (dest);
> >      assert (string);
> > -    return s_send_string (dest, true, (char *) string);
> > +    return s_send_string (dest, true, string ? (char *) string : "");
>
> Okay, will revert the change to zchunk too then.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/zeromq/czmq/pull/824/files#r20765756>.
>