Skip to content

Commit

Permalink
python: fix qubesdb module in vm
Browse files Browse the repository at this point in the history
The function qdb_init() should get NULL but instead it got uninitalised
local variable, since PyArg_ParseTuple does not touch pointers to
omitted argumets.

QubesOS/qubes-issues#1637

(cherry picked from commit 9e9dfc9)
  • Loading branch information
woju authored and marmarek committed Jun 21, 2016
1 parent 89032d3 commit 90c6d0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/qdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ qdbhandle_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
static int
qdbhandle_init(QdbHandle *self, PyObject *args)
{
char *vmname;
char *vmname = NULL;

if (!PyArg_ParseTuple(args, "|s", &vmname))
goto fail;
Expand Down

0 comments on commit 90c6d0a

Please sign in to comment.