Commit bc0afe52 authored by Kristian Høgsberg's avatar Kristian Høgsberg

2005-04-27 Kristian Høgsberg <krh@redhat.com>

        * poppler/Catalog.cc (NameTree::lookup): Fix bsearch return value
        NULL check.  Found by Albert Astals Cid.
parent 3c37dc35
2005-04-27 Kristian Høgsberg <krh@redhat.com>
* poppler/Catalog.cc (NameTree::lookup): Fix bsearch return value
NULL check. Found by Albert Astals Cid.
Tue Apr 26 13:13:42 2005 Jonathan Blandford <jrb@redhat.com>
* glib/test-poppler-glib.c (main): add a quick dump-to-text test.
......
......@@ -419,12 +419,12 @@ int NameTree::Entry::cmp(const void *voidKey, const void *voidEntry)
GBool NameTree::lookup(GooString *name, Object *obj)
{
Entry *entry;
Entry **entry;
entry = *(Entry **) bsearch(name, entries,
length, sizeof(Entry *), Entry::cmp);
entry = (Entry **) bsearch(name, entries,
length, sizeof(Entry *), Entry::cmp);
if (entry != NULL) {
entry->value.fetch(xref, obj);
(*entry)->value.fetch(xref, obj);
return gTrue;
} else {
printf("failed to look up %s\n", name->getCString());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment