diff options
Diffstat (limited to 'Modules/clmodule.c')
-rw-r--r-- | Modules/clmodule.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/clmodule.c b/Modules/clmodule.c index ef3d77a..70e8f8e 100644 --- a/Modules/clmodule.c +++ b/Modules/clmodule.c @@ -135,8 +135,7 @@ cl_CompressImage(PyObject *self, PyObject *args) } if (compressedBufferSize < frameBufferSize) - if (_PyString_Resize(&compressedBuffer, compressedBufferSize)) - return NULL; + _PyString_Resize(&compressedBuffer, compressedBufferSize); return compressedBuffer; } |