Skip to content

Commit cd2ccd5

Browse files
committed
reader: disallow passing None to get_catalog
sd_id128_from_string() does not treat NULL specially, so there is no reason to allow it.
1 parent c6a323c commit cd2ccd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systemd/_reader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1250,7 +1250,7 @@ static PyObject* get_catalog(PyObject *self _unused_, PyObject *args) {
12501250

12511251
assert(args);
12521252

1253-
if (!PyArg_ParseTuple(args, "z:get_catalog", &id_))
1253+
if (!PyArg_ParseTuple(args, "s:get_catalog", &id_))
12541254
return NULL;
12551255

12561256
r = sd_id128_from_string(id_, &id);

0 commit comments

Comments
 (0)