]> granicus.if.org Git - python/commitdiff
Issue #5943: Fix lchflags crash.
authorMartin v. Löwis <martin@v.loewis.de>
Tue, 5 May 2009 17:17:55 +0000 (17:17 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Tue, 5 May 2009 17:17:55 +0000 (17:17 +0000)
Modules/posixmodule.c

index 87ab2fa7698fd36ed532a6aaea66913a667ae587..2050d5a1a789d280c4325b5967085c8e19d61822 100644 (file)
@@ -1981,7 +1981,7 @@ posix_lchflags(PyObject *self, PyObject *args)
        unsigned long flags;
        int res;
        if (!PyArg_ParseTuple(args, "O&k:lchflags",
-                             PyUnicode_FSConverter, &path, &flags))
+                             PyUnicode_FSConverter, &opath, &flags))
                return NULL;
        path = bytes2str(opath, 1);
        Py_BEGIN_ALLOW_THREADS