Skip to content

Commit

Permalink
must 0-initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
dpdani committed Aug 29, 2024
1 parent a4c094b commit 267f995
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/structmember.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ PyMember_GetOne(const char *obj_addr, PyMemberDef *l)
v = PyUnicode_FromString((char*)addr);
break;
case Py_T_CHAR: {
char value;
char value = 0;
v = PyUnicode_FromStringAndSize(&value, 1);
break;
}
Expand Down

0 comments on commit 267f995

Please sign in to comment.