mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix compiler warning in icu module
This commit is contained in:
parent
c04c82c7cf
commit
de640e338c
@ -182,7 +182,8 @@ icu_Collator_strcmp(icu_Collator *self, PyObject *args) {
|
||||
if (b == NULL) goto end;
|
||||
res = ucol_strcoll(self->collator, a, asz, b, bsz);
|
||||
end:
|
||||
if (a != NULL) free(a); if (b != NULL) free(b);
|
||||
if (a != NULL) free(a);
|
||||
if (b != NULL) free(b);
|
||||
|
||||
return (PyErr_Occurred()) ? NULL : Py_BuildValue("i", res);
|
||||
} // }}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user