Commit 00974bcaa3340380a77c262950105b328d2f6ff6

Edward Thomson 2020-04-05T14:52:48

date: use GIT_ASSERT

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/date.c b/src/date.c
index 0e1b31a..f8594ed 100644
--- a/src/date.c
+++ b/src/date.c
@@ -881,7 +881,8 @@ int git__date_rfc2822_fmt(char *out, size_t len, const git_time *date)
 	struct tm gmt;
 	time_t t;
 
-	assert(out && date);
+	GIT_ASSERT_ARG(out);
+	GIT_ASSERT_ARG(date);
 
 	t = (time_t) (date->time + date->offset * 60);