[zeromq-dev] possible bug in zframe.c ?

Emeka emekamicro at gmail.com
Tue Jun 18 13:52:10 CEST 2013


My little understanding of C language tells me that " const char" is only
read-only. So, why do we change the of "ellipsis"
On Jun 18, 2013 10:32 AM, "Shaukat Mahmood Ahmad" <write at sma.im> wrote:

> I will not take it as mistake, its better to ask if you have some
> confusion instead of making assumptions on your own.
>
> On Tue, Jun 18, 2013 at 2:23 PM, Laurent Alebarde <l.alebarde at free.fr>
> wrote:
> > Sorry, I will do penance for my mistake.
> >
> > Cheers,
> >
> >
> > Laurent.
> >
> >
> > Le 18/06/2013 10:29, Pieter Hintjens a écrit :
> >
> > Laurent,
> >
> > I am not an expert, but it looks to me that the room for "..." has not
> been
> > allocated. If my analysis is correct, a possible correction would be:
> >
> > There's no bug, the code is correct (the variable name is indeed
> > misspelled).
> >
> > What the C code does is define a pointer to a constant string ("""),
> > which it then switches to a different constant string ("...") if it
> > wants to print that out, and then it finally uses the pointer in the
> > fprintf call. There's no allocation happening.
> >
> > -Pieter
> > _______________________________________________
> > zeromq-dev mailing list
> > zeromq-dev at lists.zeromq.org
> > http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> >
> >
> >
> > _______________________________________________
> > zeromq-dev mailing list
> > zeromq-dev at lists.zeromq.org
> > http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> >
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130618/24c4b6c6/attachment.htm>


More information about the zeromq-dev mailing list