We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7316767 + d62c89a commit 228905fCopy full SHA for 228905f
compat/mingw.c
@@ -2131,7 +2131,7 @@ void mingw_startup()
2131
2132
int uname(struct utsname *buf)
2133
{
2134
- DWORD v = GetVersion();
+ unsigned v = (unsigned)GetVersion();
2135
memset(buf, 0, sizeof(*buf));
2136
xsnprintf(buf->sysname, sizeof(buf->sysname), "Windows");
2137
xsnprintf(buf->release, sizeof(buf->release),
remote.c
@@ -282,6 +282,7 @@ static void read_branches_file(struct remote *remote)
282
return;
283
284
strbuf_getline(&buf, f, '\n');
285
+ fclose(f);
286
strbuf_trim(&buf);
287
if (!buf.len) {
288
strbuf_release(&buf);
0 commit comments