summaryrefslogtreecommitdiffstats
path: root/mbyte.c
diff options
context:
space:
mode:
authorBrendan Cully <brendan@kublai.com>2012-07-21 19:51:31 -0700
committerBrendan Cully <brendan@kublai.com>2012-07-21 19:51:31 -0700
commit3bf3df8d5624f6c9dc05b356f439400d1dccd36f (patch)
tree8642ae7120c7161a0fde4823832409dabc497cc8 /mbyte.c
parent287598ae8695ef77378681ee36cbae0dae407dc5 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbyte.c b/mbyte.c
index 6e450246..fb96a714 100644
--- a/mbyte.c
+++ b/mbyte.c
@@ -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));