Skip to content

Commit 8c62755

Browse files
committed
linux: bugfix - workspace base dir may be empty ""
1 parent 2f636d2 commit 8c62755

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linux/flutter/flutter_dart.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ std::string utilGetArch() {
248248
std::string utilWorkspaceBaseDir() {
249249
char buf[PATH_MAX];
250250
size_t len = readlink("/proc/self/exe", buf, sizeof(buf));
251-
if (len < 0) {
251+
if (len <= 0) {
252252
buf[0] = '\0';
253253
} else {
254254
dirname(buf);

0 commit comments

Comments
 (0)