mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
parsers: fix uninitialize variable warning
The heads pointer is not initialized correctly if filter is false, causing both clang and gcc to issue a warning. Correctly initialize heads to NULL.
This commit is contained in:
parent
a7bd255d53
commit
4a8632512f
@ -854,7 +854,7 @@ static PyObject *index_headrevs(indexObject *self, PyObject *args)
|
||||
{
|
||||
Py_ssize_t i, len, addlen;
|
||||
char *nothead = NULL;
|
||||
PyObject *heads;
|
||||
PyObject *heads = NULL;
|
||||
PyObject *filter = NULL;
|
||||
PyObject *filteredrevs = Py_None;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user