Commit Diff


commit - 3bfadbd404f3e18e73d69ad6da6c0dbc8de67097
commit + e87a53ff87b118b0f2144d7d2e111986d2380240
blob - 4d09d7c4a12a94eda1bbde6bb098bfced7ca8ac6
blob + daf8aad1354470865d9b76172bd39ea13f3d397f
--- lib/reference.c
+++ lib/reference.c
@@ -817,7 +817,7 @@ const struct got_error *
 got_ref_cmp_by_commit_timestamp_descending(void *arg, int *cmp,
     struct got_reference *ref1, struct got_reference *ref2)
 {
-	const struct got_error *err;
+	const struct got_error *err = NULL;
 	struct got_repository *repo = arg;
 
 	*cmp = 0;