Re: Commit: Re: patch: one-liner for 1134

Subject: Re: Commit: Re: patch: one-liner for 1134
From: Tom Briggs (
Date: Fri Mar 30 2001 - 12:30:39 CST

On 30 Mar 2001, Joaquin Cuenca Abela wrote:

> > A one byte buffer containing a null character is a perfectly valid
> > string - it's just a blank string.
> yes, but it's an empty string and always will be an empty string. Just
> wondering, what's the need for such a string?

   Though I must first admit that I haven't looked at the code, creating a
zero-length string is usually done when you need a valid but zero-length
buffer for a pointer to point to, as that pointer is used elsewhere with a
non-zero-length buffer.
   Now, if the pointer we're talking about always points to a buffer of
length 1 and it always contains an empty string, then something is
definitely wrong. :)


This archive was generated by hypermail 2b25 : Fri Mar 30 2001 - 13:07:39 CST