Hi Bertrand,
> You are right; here is a patch to fix all that, does it look OK to you?
...
> + /* uchardet 0.0.1 could return an empty string instead of NULL */
> + if (charset && *charset) {
> ret = (char *)calloc(strlen(charset) + 1, 1);
> strcpy(ret, charset);
> }Yep. The calloc() could be malloc() for a little less noise. Thanks for fixing it. -- Cheers, Ralph. https://plus.google.com/+RalphCorderoy
