Submitter | Yuya Nishihara |
---|---|
Date | March 25, 2017, 10:38 a.m. |
Message ID | <ca3ea70b04791670fa70.1490438328@mimosa> |
Download | mbox | patch |
Permalink | /patch/19662/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/osutil.c b/mercurial/osutil.c --- a/mercurial/osutil.c +++ b/mercurial/osutil.c @@ -1088,12 +1088,7 @@ static PyObject *pygetfstype(PyObject *s return NULL; memset(&buf, 0, sizeof(buf)); - const char *type = getfstype(path, &buf); - if (type == NULL) - Py_RETURN_NONE; - - PyObject *result = Py_BuildValue("s", type); - return result; + return Py_BuildValue("s", getfstype(path, &buf)); } #endif /* defined(HAVE_LINUX_STATFS) || defined(HAVE_BSD_STATFS) */