mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-30 22:24:56 +00:00
Fix an always false comparison "unsigned < 0" warning
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
This commit is contained in:
parent
803a6b4d41
commit
a4f863af4d
@ -503,7 +503,7 @@ static int make_temp_file(git_file *fd, char *tmp, size_t n, char *file)
|
|||||||
{
|
{
|
||||||
char *template = "/tmp_obj_XXXXXX";
|
char *template = "/tmp_obj_XXXXXX";
|
||||||
size_t tmplen = strlen(template);
|
size_t tmplen = strlen(template);
|
||||||
size_t dirlen;
|
int dirlen;
|
||||||
|
|
||||||
if ((dirlen = git__dirname(tmp, n, file)) < 0)
|
if ((dirlen = git__dirname(tmp, n, file)) < 0)
|
||||||
return GIT_ERROR;
|
return GIT_ERROR;
|
||||||
|
Loading…
Reference in New Issue
Block a user