diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-05-07 19:32:30 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-05-07 19:32:30 +0000 |
commit | d89d0afad4551a808b15510795f965aed147a834 (patch) | |
tree | 6ee42f86f81214d429731b80816b3ff135d06b86 | |
parent | aa5f4ad8ef03d28615e0460788e0c4e3a8373122 (diff) | |
download | glibc-d89d0afad4551a808b15510795f965aed147a834.zip glibc-d89d0afad4551a808b15510795f965aed147a834.tar.gz glibc-d89d0afad4551a808b15510795f965aed147a834.tar.bz2 |
(dcigettext): Fix interpretation of tsearch return value.
-rw-r--r-- | intl/dcigettext.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/intl/dcigettext.c b/intl/dcigettext.c index 75f1707..3c86b83 100644 --- a/intl/dcigettext.c +++ b/intl/dcigettext.c @@ -607,7 +607,8 @@ DCIGETTEXT (domainname, msgid1, msgid2, plural, n, category) /* Insert the entry in the search tree. */ foundp = (struct known_translation_t **) tsearch (newp, &root, transcmp); - if (__builtin_expect (&newp != foundp, 0)) + if (foundp == NULL + || __builtin_expect (*foundp != newp, 0)) /* The insert failed. */ free (newp); } |