We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9fe6fd commit d66a3a0Copy full SHA for d66a3a0
main/routines.c
@@ -429,7 +429,7 @@ extern void setCurrentDirectory (void) /* TODO */
429
CurrentDirectory = xMalloc ((size_t) (PATH_MAX + 1), char);
430
buf = getcwd (CurrentDirectory, PATH_MAX);
431
if (buf == NULL)
432
- perror ("");
+ error (FATAL | PERROR, "failed in getcwd()");
433
if (! isPathSeparator (CurrentDirectory [strlen (CurrentDirectory) - (size_t) 1]))
434
{
435
sprintf (CurrentDirectory + strlen (CurrentDirectory), "%c",
0 commit comments