Remove left-over debugging code
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user