[poppler] poppler/poppler: Catalog.cc,1.8,1.9
Kristian Hogsberg
krh at freedesktop.org
Wed Apr 27 11:53:22 PDT 2005
Update of /cvs/poppler/poppler/poppler
In directory gabe:/tmp/cvs-serv10192/poppler
Modified Files:
Catalog.cc
Log Message:
2005-04-27 Kristian Høgsberg <krh at redhat.com>
* poppler/Catalog.cc (NameTree::lookup): Fix bsearch return value
NULL check. Found by Albert Astals Cid.
Index: Catalog.cc
===================================================================
RCS file: /cvs/poppler/poppler/poppler/Catalog.cc,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- Catalog.cc 19 Apr 2005 04:28:15 -0000 1.8
+++ Catalog.cc 27 Apr 2005 18:53:20 -0000 1.9
@@ -419,12 +419,12 @@
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());
More information about the poppler
mailing list