[xml] Problem In Deprecated Catalog API
- From: Igor Zlatkovic <igor zlatkovic com>
- To: xml gnome org
- Subject: [xml] Problem In Deprecated Catalog API
- Date: Mon, 17 May 2004 21:36:29 +0200
Hi,
The two functions xmlCatalogGetPublic and xmlCatalogGetSystem in
catalog.c are deprecated, true enough. But...
Both have an execution path which returns the address of the local
variable 'result'. This address isn't valid after the relevant function
returns. This can cause various amounts of trouble.
Will someone's legs end up broken if I remove the code from these
functions and delegate the call to xmlCatalogResolveSystem and
xmlCatalogResolvePublic?
Ciao,
Igor
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]