Remove left-over debugging code

This commit is contained in:
Carlos Martín Nieto
2014-02-14 00:07:43 +01:00
parent 7b951fec74
commit 378c04284a

View File

@@ -6,10 +6,8 @@
int geef_oid_bin(ErlNifBinary *bin, const git_oid *id)
{
if (!enif_alloc_binary(GIT_OID_RAWSZ, bin)) {
printf("cannot alloc an id!\n");
if (!enif_alloc_binary(GIT_OID_RAWSZ, bin))
return -1;
}
memcpy(bin->data, id, GIT_OID_RAWSZ);
return 0;