diff options
author | Brendan Cully <brendan@kublai.com> | 2012-07-21 19:51:31 -0700 |
---|---|---|
committer | Brendan Cully <brendan@kublai.com> | 2012-07-21 19:51:31 -0700 |
commit | 3bf3df8d5624f6c9dc05b356f439400d1dccd36f (patch) | |
tree | 8642ae7120c7161a0fde4823832409dabc497cc8 /mbyte.c | |
parent | 287598ae8695ef77378681ee36cbae0dae407dc5 (diff) |
Split mutt_buffer_new out of mutt_buffer_init.
Currently, no callers were providing a non-NULL buffer to
mutt_buffer_init, and splitting it will allow more sane semantics for
buffer allocation, initialization, and destruction in a later patch.
Diffstat (limited to 'mbyte.c')
-rw-r--r-- | mbyte.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -534,7 +534,7 @@ int mutt_filter_unprintable (char **s) char *p = *s; mbstate_t mbstate1, mbstate2; - if (!(b = mutt_buffer_init (b))) + if (!(b = mutt_buffer_new ())) return -1; memset (&mbstate1, 0, sizeof (mbstate1)); memset (&mbstate2, 0, sizeof (mbstate2)); |