Skip to content

Commit

Permalink
Fix build on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
yangheran committed Nov 9, 2024
1 parent d6284e8 commit 736c390
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -844,8 +844,8 @@ should_ignore_on_checkout (const char *file_path, IgnoreReason *ignore_reason)

out:
g_strfreev (components);
#endif

return ret;
#else
char **components = g_strsplit (file_path, "/", -1);
int n_comps = g_strv_length (components);
int j = 0;
Expand All @@ -861,8 +861,8 @@ should_ignore_on_checkout (const char *file_path, IgnoreReason *ignore_reason)
}
}
g_strfreev (components);

return ret;
#endif
}

ssize_t /* Read "n" bytes from a descriptor. */
Expand Down

0 comments on commit 736c390

Please sign in to comment.