libthread: fix typo in _runthreadspawn

This commit is contained in:
AlternatePortal
2026-02-27 23:07:25 +05:30
committed by Dan Cross
parent 6654cad3c5
commit ae4fdf4268

View File

@@ -49,7 +49,7 @@ _runthreadspawn(int *fd, char *cmd, char **argv, char *dir)
if(e->argv[i] == nil) if(e->argv[i] == nil)
sysfatal("out of memory"); sysfatal("out of memory");
} }
if(e->dir != nil) { if(dir != nil) {
e->dir = strdup(dir); e->dir = strdup(dir);
if(e->dir == nil) if(e->dir == nil)
sysfatal("out of memory"); sysfatal("out of memory");