This commit is contained in:
Max Lv
2020-01-19 18:04:18 +08:00
parent 0318168938
commit d31fba3deb
+1 -1
View File
@@ -272,7 +272,7 @@ start_plugin(const char *plugin,
if (cwd) {
#else
char cwd[PATH_MAX];
if (!getcwd(cwd, PATH_MAX)) {
if (getcwd(cwd, PATH_MAX) != NULL) {
#endif
new_path_len = strlen(current_path) + strlen(cwd) + 2;
new_path = ss_malloc(new_path_len);