Commit 845785d4e40a5c6b45a348a9436e0c3357ed7622

Tracey Emery 2020-02-02T17:08:02

typo

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/object.c b/lib/object.c
index 499c7c7..b0ab435 100644
--- a/lib/object.c
+++ b/lib/object.c
@@ -1232,7 +1232,7 @@ got_object_blob_dump_to_file(size_t *filesize, int *nlines,
 				*nlines = 1;
 				*line_offsets = calloc(1, sizeof(**line_offsets));
 				if (*line_offsets == NULL)
-					return got_error_from_errno("malloc");
+					return got_error_from_errno("calloc");
 
 				/* Skip forward over end of first line. */
 				while (i < len) {