Skip to content

Commit

Permalink
* locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
Browse files Browse the repository at this point in the history
	rather than col_sym_free.  Move seqp declaration earlier.

	* resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
  • Loading branch information
Ulrich Drepper committed Sep 6, 2006
1 parent b051fc4 commit 243b9ac
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2006-09-06 Jakub Jelinek <jakub@redhat.com>

* locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
rather than col_sym_free. Move seqp declaration earlier.

* resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.

2006-09-05 Jakub Jelinek <jakub@redhat.com>

* nscd/initgrcache.c (addinitgroupsX): Move any_success
Expand Down
5 changes: 2 additions & 3 deletions locale/programs/ld-collate.c
Original file line number Diff line number Diff line change
Expand Up @@ -3068,7 +3068,7 @@ collate_read (struct linereader *ldfile, struct localedef_t *result,
lr_error (ldfile, _("\
%s: unknown symbol `%s' in equivalent definition"),
"LC_COLLATE", symname);
goto col_sym_free;
goto sym_equiv_free;
}

if (insert_entry (&collate->sym_table,
Expand Down Expand Up @@ -3533,13 +3533,13 @@ error while adding equivalent collating symbol"));
break;
}

struct element_t *seqp;
if (state == 0)
{
/* We are outside an `order_start' region. This means
we must only accept definitions of values for
collation symbols since these are purely abstract
values and don't need directions associated. */
struct element_t *seqp;
void *ptr;

if (find_entry (&collate->seq_table, symstr, symlen, &ptr) == 0)
Expand Down Expand Up @@ -3586,7 +3586,6 @@ error while adding equivalent collating symbol"));
{
/* It is possible that we already have this collation sequence.
In this case we move the entry. */
struct element_t *seqp = NULL;
void *sym;
void *ptr;

Expand Down
1 change: 1 addition & 0 deletions resolv/gai_suspend.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ gai_suspend (const struct gaicb *const list[], int ent,
pthread_setcancelstate (PTHREAD_CANCEL_DISABLE, &oldstate);

#ifdef DONT_NEED_GAI_MISC_COND
result = 0;
GAI_MISC_WAIT (result, cntr, timeout, 1);
#else
if (timeout == NULL)
Expand Down

0 comments on commit 243b9ac

Please sign in to comment.