result of argument type check was ignored in FuseInvalidate(), fix it

This commit is contained in:
dzsekijo 2006-05-23 16:00:35 +00:00
parent 894ade0a62
commit 5933e98182
2 changed files with 4 additions and 1 deletions

View file

@ -7,6 +7,8 @@
21 to 26
- Credits: aggregated from contributions, code snippets and ideas of
Simon Barner, Csaba Henk, Roman Shterenzon and Miklos Szeredi
* Result of argument type check was ignored in FuseInvalidate(), fix
it
2006-02-03 Sebastien Delafond <sdelafond@gmx.net>

View file

@ -594,12 +594,13 @@ static PyObject *FuseInvalidate( PyObject *self, PyObject *args) {
PyObject *ret;
int err;
PyString_Check(args);
if(!PyString_Check(args)) { err = -EINVAL; goto OUT; }
path = PyString_AsString(args);
err = fuse_invalidate(fuse, path);
OUT:
ret = PyInt_FromLong(err);
return(ret);