Skip to content

Commit a7ec853

Browse files
committed
fixup: getHomeDir(username): reallocShared may undefined
1 parent a80914e commit a7ec853

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/private/osappdirs.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ when defined(unix): # XXX: suitable?
3939
nomem = false
4040
p: ptr Passwd = nil
4141
buf: cstring = nil
42-
when declared(getpwnam_r):
42+
when declared(getpwnam_r) and declared(reallocShared):
4343
var pwd: Passwd
4444
while true:
4545
let buf2 = cast[cstring](reallocShared(buf, bufsize))

0 commit comments

Comments
 (0)