Fix an always false comparison "unsigned < 0" warning

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
This commit is contained in:
Ramsay Jones 2010-01-03 19:37:04 +00:00
parent 803a6b4d41
commit a4f863af4d

View File

@ -503,7 +503,7 @@ static int make_temp_file(git_file *fd, char *tmp, size_t n, char *file)
{
char *template = "/tmp_obj_XXXXXX";
size_t tmplen = strlen(template);
size_t dirlen;
int dirlen;
if ((dirlen = git__dirname(tmp, n, file)) < 0)
return GIT_ERROR;