result of argument type check was ignored in FuseInvalidate(), fix it
This commit is contained in:
parent
894ade0a62
commit
5933e98182
2 changed files with 4 additions and 1 deletions
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue