Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Address code review
  • Loading branch information
corona10 committed Nov 12, 2022
commit 3a784f64838aaadb61ed3ae46908a41649d71910
8 changes: 2 additions & 6 deletions Modules/syslogmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,7 @@ syslog_closelog_impl(PyObject *module)
state->S_log_open = 0;
}

if (state->S_ident_o != NULL) {
Py_CLEAR(state->S_ident_o);
}
Py_CLEAR(state->S_ident_o);
Py_RETURN_NONE;
}

Expand Down Expand Up @@ -403,9 +401,7 @@ _syslog_clear(PyObject *module)
state->S_log_open = 0;
}

if (state->S_ident_o != NULL) {
Py_CLEAR(state->S_ident_o);
}
Py_CLEAR(state->S_ident_o);
Comment thread
corona10 marked this conversation as resolved.
Outdated
return 0;
}

Expand Down