diff --git a/src/path.cpp b/src/path.cpp index 2217622c6..5a71c5463 100644 --- a/src/path.cpp +++ b/src/path.cpp @@ -79,14 +79,14 @@ String get_working_directory(gbAllocator allocator) { TEMPORARY_ALLOCATOR_GUARD(); auto buf = array_make(temporary_allocator()); - size_t size = PATH_MAX: + size_t size = PATH_MAX; char const *cwd; for (; cwd == nullptr; size *= 2) { array_resize(&buf, size); cwd = getcwd(buf.data, buf.count); - if cwd == nullptr && errno() != ERANGE { + if (cwd == nullptr && errno() != ERANGE) { return {}; } }