u-casexfrm.h | u-casexfrm.h | |||
---|---|---|---|---|
/* Locale dependent transformation for case insensitive comparison of Unico de | /* Locale dependent transformation for case insensitive comparison of Unico de | |||
strings. | strings. | |||
Copyright (C) 2009-2010 Free Software Foundation, Inc. | Copyright (C) 2009-2014 Free Software Foundation, Inc. | |||
Written by Bruno Haible <bruno@clisp.org>, 2009. | Written by Bruno Haible <bruno@clisp.org>, 2009. | |||
This program is free software: you can redistribute it and/or modify it | This program is free software: you can redistribute it and/or modify it | |||
under the terms of the GNU Lesser General Public License as published | under the terms of the GNU Lesser General Public License as published | |||
by the Free Software Foundation; either version 3 of the License, or | by the Free Software Foundation; either version 3 of the License, or | |||
(at your option) any later version. | (at your option) any later version. | |||
This program is distributed in the hope that it will be useful, | This program is distributed in the hope that it will be useful, | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
skipping to change at line 73 | skipping to change at line 73 | |||
if (memory == NULL) | if (memory == NULL) | |||
{ | { | |||
free (convs); | free (convs); | |||
errno = ENOMEM; | errno = ENOMEM; | |||
return NULL; | return NULL; | |||
} | } | |||
convs = memory; | convs = memory; | |||
} | } | |||
/* Apply locale dependent transformations for comparison. */ | /* Apply locale dependent transformations for comparison. */ | |||
result = memxfrm (convs, convs_length, resultbuf, lengthp); | result = amemxfrm (convs, convs_length, resultbuf, lengthp); | |||
if (result == NULL) | if (result == NULL) | |||
{ | { | |||
if (convs != convsbuf) | if (convs != convsbuf) | |||
{ | { | |||
int saved_errno = errno; | int saved_errno = errno; | |||
free (convs); | free (convs); | |||
errno = saved_errno; | errno = saved_errno; | |||
} | } | |||
return NULL; | return NULL; | |||
} | } | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |