Skip to content

Commit b363ea4

Browse files
authored
Merge pull request libgit2#6932 from ajacoutot/openbsd-realpath
2 parents a6ee48d + d1f1e17 commit b363ea4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/unix/realpath.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ char *p_realpath(const char *pathname, char *resolved)
2424
#ifdef __OpenBSD__
2525
/* The OpenBSD realpath function behaves differently,
2626
* figure out if the file exists */
27-
if (access(ret, F_OK) < 0) {
27+
if (access(result, F_OK) < 0) {
2828
if (!resolved)
2929
free(result);
3030

0 commit comments

Comments
 (0)