From 7035598c73cbc5fa48ec5abdb27b166e9aa07a20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20David=20Ib=C3=A1=C3=B1ez?= Date: Sat, 13 Aug 2011 21:50:51 +0200 Subject: [PATCH] Fix warning in 'Commit_get_message_encoding' --- pygit2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygit2.c b/pygit2.c index 56e5d90..487e117 100644 --- a/pygit2.c +++ b/pygit2.c @@ -1014,7 +1014,7 @@ static PyTypeObject ObjectType = { static PyObject * Commit_get_message_encoding(Commit *commit) { - char *encoding; + const char *encoding; encoding = git_commit_message_encoding(commit->commit); if (encoding == NULL)