Skip to content

Commit 25f8f46

Browse files
committed
optimized
1 parent 2deb6b8 commit 25f8f46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/self_exe_path/self.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ int selfpath(char buf[]) {
107107
if (realpath(argv0, buf) == NULL) {
108108
return -1;
109109
} else {
110-
return 0;
110+
return strlen(buf);
111111
}
112112
}
113113

0 commit comments

Comments
 (0)