Commit Diff


commit - 7f66531d28466880142708210643464d65b9b63b
commit + 0309152af410dec50680c7a54ae55ba8ebd7fcae
blob - 3d4dadc8459f1d8ea2df85a31273afae7074548f
blob + 436888f0bb009a383e1d3509e00ed610638cf521
--- lib/reference.c
+++ lib/reference.c
@@ -818,7 +818,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;