aboutsummaryrefslogtreecommitdiffhomepage
path: root/emacs/notmuch-lib.el
diff options
context:
space:
mode:
authorGravatar Anthony <aj@erisian.com.au>2010-04-20 08:55:31 -0700
committerGravatar Carl Worth <cworth@cworth.org>2010-04-20 08:55:31 -0700
commit55d06f3e0bc12c27879bba98153d70ea399ec737 (patch)
tree9b28725700216320add062607f3fafe80f255803 /emacs/notmuch-lib.el
parentcacefbf3d6dd5bce0b60b3cdfce29bfa371dfaea (diff)
json_quote_chararray: Always return a newly talloced array
The special case for len==0 was wrong---the normal code path is to talloc to get a newly allocated, editable string, that might be talloc_free'd later. It makes more sense just to let the len==0 behaviour fall through into the normal case code. Reviewed-by: Carl Worth <cworth@cworth.org> This results in the same value being returned, but with the proper memory handling.
Diffstat (limited to 'emacs/notmuch-lib.el')
0 files changed, 0 insertions, 0 deletions