Skip to content

Commit

Permalink
Fix #2599
Browse files Browse the repository at this point in the history
  • Loading branch information
madeye committed Jan 19, 2020
1 parent 0318168 commit d31fba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d31fba3

Please sign in to comment.