Thread (10 messages) flat view 10 messages, 3 authors, 2016-06-15

Re: Use of strbuf.buf when strbuf.len == 0

From: Pierre Habouzit <hidden>
Date: 2016-06-15 22:43:37

On Thu, Sep 27, 2007 at 11:22:04AM +0000, Pierre Habouzit wrote:
(it's arguable > that it's a right thing to assume though)
  I find this ugly, so I've even checked if we did assume that, which is
easy now that such places all use strbuf_detach. One place seemed to,
but wasn't, so I patched it so that it's not the case anymore.

  All other places that use strbuf_detach don't use the fact that it can
return NULL to detect error cases, so we are safe.

-- 
·O·  Pierre Habouzit
··O                                                madcoder@debian.org
OOO                                                http://www.madism.org

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help