diff --git a/Libraries/LibC/unistd.cpp b/Libraries/LibC/unistd.cpp index 4c7df9f0ce..f2fe6a379c 100644 --- a/Libraries/LibC/unistd.cpp +++ b/Libraries/LibC/unistd.cpp @@ -334,7 +334,7 @@ char* getwd(char* buf) int sleep(unsigned seconds) { struct timespec ts = { seconds, 0 }; - if (clock_nanosleep(CLOCK_MONOTONIC, 0, &ts, &ts) < 0) + if (clock_nanosleep(CLOCK_MONOTONIC, 0, &ts, nullptr) < 0) return ts.tv_sec; return 0; }