Re: [xml] xmlIO open and close inconvenience

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Sun Oct 22 2000 - 08:30:36 EDT


On Sun, Oct 22, 2000 at 12:19:39PM +0000, Bjorn Reese wrote:
>
> Executing xmlDocDump(stdout, doc) twice doesn't work the second time,
> because stdout has been closed by xmlIO. IMHO, xmlIO should only close
> a FILE if it has been opened by xmlIO itself.

  Right, the enclosed patch should fix the problem (and not generate
FD nor FILE memory leaks).

Daniel

-- 
Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes  | libxml Gnome XML toolkit
Tel : +33 476 615 257  | 655, avenue de l'Europe | http://xmlsoft.org/
Fax : +33 476 615 207  | 38330 Montbonnot FRANCE | Rpmfind search site
 http://www.w3.org/People/all#veillard%40w3.org  | http://rpmfind.net/


----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sun Oct 22 2000 - 09:43:45 EDT