From 378c04284a929b13fecae8d9eb6692f33959d2fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Fri, 14 Feb 2014 00:07:43 +0100 Subject: [PATCH] Remove left-over debugging code --- c_src/oid.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/c_src/oid.c b/c_src/oid.c index 00ff35a..a0cf889 100644 --- a/c_src/oid.c +++ b/c_src/oid.c @@ -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;