[libgit2-glib] Do not initially fill buffer to prettify message
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgit2-glib] Do not initially fill buffer to prettify message
- Date: Tue, 24 Jun 2014 15:30:01 +0000 (UTC)
commit 13d84446d5ccc6e9a51938d36eebea94abf0e873
Author: Jesse van den Kieboom <jessevdk gnome org>
Date: Tue Jun 24 17:28:37 2014 +0200
Do not initially fill buffer to prettify message
Doing so let to a duplicate message since the prettified message
would be appended to the initial buffer contents.
libgit2-glib/ggit-message.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/libgit2-glib/ggit-message.c b/libgit2-glib/ggit-message.c
index 4ee8ff2..0fa9e8c 100644
--- a/libgit2-glib/ggit-message.c
+++ b/libgit2-glib/ggit-message.c
@@ -43,8 +43,6 @@ ggit_message_prettify (const gchar *message,
git_buf buf = {0,};
gchar *d;
- git_buf_set(&buf, message, strlen (message));
-
git_message_prettify (&buf, message, strip_comments, comment_char);
d = g_strdup (buf.ptr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]