Skip to content

Commit

Permalink
Fix inconsistent style
Browse files Browse the repository at this point in the history
Signed-off-by: Filipe Laíns <[email protected]>
  • Loading branch information
FFY00 committed Nov 17, 2024
1 parent c99456f commit 8881c96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Objects/structseq.c
Original file line number Diff line number Diff line change
Expand Up @@ -558,8 +558,9 @@ initialize_structseq_dict(PyStructSequence_Desc *desc, PyObject* dict,

// Set _fields_defaults to an empty dir, as we don't support defaults
defaults = PyDict_New();
if (!defaults)
if (!defaults) {
goto error;
}

if (PyDict_SetItemString(dict, named_fields_defaults_key, defaults) < 0) {
goto error;
Expand Down

0 comments on commit 8881c96

Please sign in to comment.