]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
pylibmount: NULL terminate kwlist in Context_init
authorZac Medico <zmedico@gentoo.org>
Thu, 8 Jun 2017 00:21:33 +0000 (17:21 -0700)
committerKarel Zak <kzak@redhat.com>
Fri, 23 Jun 2017 13:12:37 +0000 (15:12 +0200)
Fixes a segfault observed with python3.6.

libmount/python/context.c

index 6d82e14327a38c2a9d108cc2fd829102813140a6..982414d01d882b706fb40b59ef4faaebe9216d12 100644 (file)
@@ -90,7 +90,7 @@ static int Context_init(ContextObjext *self, PyObject *args, PyObject *kwds)
                "source", "target", "fstype",
                "options", "mflags", "fstype_pattern",
                "options_pattern", "fs", "fstab",
-               "optsmode"
+               "optsmode", NULL
        };
 
        if (!PyArg_ParseTupleAndKeywords(