Skip to content

Commit

Permalink
Run make indent on C code
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Heimes <cheimes@redhat.com>
  • Loading branch information
Christian Heimes authored and Petr Viktorin committed Jun 5, 2020
1 parent 269df17 commit ed802af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Modules/LDAPObject.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ Tuple_to_LDAPMod(PyObject *tup, int no_op)
}

lm = PyMem_NEW(LDAPMod, 1);

if (lm == NULL)
goto nomem;

Expand Down Expand Up @@ -236,6 +237,7 @@ List_to_LDAPMods(PyObject *list, int no_op)
}

lms = PyMem_NEW(LDAPMod *, len + 1);

if (lms == NULL)
goto nomem;

Expand Down
3 changes: 3 additions & 0 deletions Modules/ldapcontrol.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ Tuple_to_LDAPControl(PyObject *tup)
return NULL;

lc = PyMem_NEW(LDAPControl, 1);

if (lc == NULL) {
PyErr_NoMemory();
return NULL;
Expand All @@ -91,6 +92,7 @@ Tuple_to_LDAPControl(PyObject *tup)

len = strlen(oid);
lc->ldctl_oid = PyMem_NEW(char, len + 1);

if (lc->ldctl_oid == NULL) {
PyErr_NoMemory();
LDAPControl_DEL(lc);
Expand Down Expand Up @@ -137,6 +139,7 @@ LDAPControls_from_object(PyObject *list, LDAPControl ***controls_ret)

len = PySequence_Length(list);
ldcs = PyMem_NEW(LDAPControl *, len + 1);

if (ldcs == NULL) {
PyErr_NoMemory();
return 0;
Expand Down

0 comments on commit ed802af

Please sign in to comment.