refs: assert that we're passed valid refs when renaming CID 1382962
diff --git a/src/refs.c b/src/refs.c
index 50afb26..85599da 100644
--- a/src/refs.c
+++ b/src/refs.c
@@ -709,6 +709,8 @@ int git_reference_rename(
git_signature *who;
int error;
+ assert(out && ref);
+
if ((error = git_reference__log_signature(&who, ref->db->repo)) < 0)
return error;