summaryrefslogtreecommitdiffstats
path: root/Modules/cdmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/cdmodule.c')
-rw-r--r--Modules/cdmodule.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/cdmodule.c b/Modules/cdmodule.c
index b977277..25add3e 100644
--- a/Modules/cdmodule.c
+++ b/Modules/cdmodule.c
@@ -251,8 +251,7 @@ CD_readda(cdplayerobject *self, PyObject *args)
return NULL;
}
if (n < numframes)
- if (_PyString_Resize(&result, n * sizeof(CDFRAME)))
- return NULL;
+ _PyString_Resize(&result, n * sizeof(CDFRAME));
return result;
}