Skip to content

Commit

Permalink
Initialize pointers to NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Dec 28, 2023
1 parent 220d769 commit 5ba4b95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/tags.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ CBORTag_hash(CBORTagObject *self)
return -1;

Py_hash_t ret = -1;
PyObject *running_hashes;
PyObject *tmp;
PyObject *running_hashes = NULL;
PyObject *tmp = NULL;
PyObject *self_id = PyLong_FromVoidPtr(self);
if (!self_id)
goto exit;
Expand Down

0 comments on commit 5ba4b95

Please sign in to comment.