Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 04c3b35

Browse files
author
Edward Thomson
committed
map: use giterr_set internally
Use the `giterr_set` function, which actually supports `GITERR_OS`. The `giterr_set_str` function is exposed for external users and will not append the operating system's error message.
1 parent fb96b28 commit 04c3b35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/unix/map.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ int git__page_size(size_t *page_size)
1717
{
1818
long sc_page_size = sysconf(_SC_PAGE_SIZE);
1919
if (sc_page_size < 0) {
20-
giterr_set_str(GITERR_OS, "Can't determine system page size");
20+
giterr_set(GITERR_OS, "can't determine system page size");
2121
return -1;
2222
}
2323
*page_size = (size_t) sc_page_size;

0 commit comments

Comments
 (0)