We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 824ac67 commit dcd5accCopy full SHA for dcd5acc
src/index.c
@@ -650,18 +650,12 @@ IndexEntry_path__get__(IndexEntry *self)
650
int
651
IndexEntry_path__set__(IndexEntry *self, PyObject *py_path)
652
{
653
- char *c_inner, *c_path;
+ char *c_path;
654
655
- c_inner = py_str_to_c_str(py_path, NULL);
656
- if (!c_inner)
+ c_path = py_str_to_c_str(py_path, NULL);
+ if (!c_path)
657
return -1;
658
659
- c_path = strdup(c_inner);
660
- if (!c_path) {
661
- PyErr_NoMemory();
662
- return -1;
663
- }
664
-
665
free(self->entry.path);
666
self->entry.path = c_path;
667
0 commit comments