1 --- ldpart.c.orig Tue May 20 15:21:44 2003
2 +++ ldpart.c Wed Jun 11 13:11:52 2003
5 __part_load_locale(const char *name,
9 const char *category_filename,
10 int locale_buf_size_max,
11 int locale_buf_size_min,
14 * If the locale name is the same as our cache, use the cache.
16 - if (locale_buf != NULL && strcmp(name, locale_buf) == 0) {
17 + if (*locale_buf != NULL && strcmp(name, *locale_buf) == 0) {
23 * Record the successful parse in the cache.
25 - if (locale_buf != NULL)
28 - for (p = locale_buf, i = 0; i < num_lines; i++)
29 + if (*locale_buf != NULL)
32 + for (p = *locale_buf, i = 0; i < num_lines; i++)
33 dst_localebuf[i] = (p += strlen(p) + 1);
34 for (i = num_lines; i < locale_buf_size_max; i++)
35 dst_localebuf[i] = NULL;