approval_X11R6.8.x requested: [Bug 2942] "xman" may crash when opening the print dialog : [Attachment 2360] Patch for 2005-04-09-trunk which uses |XtCalloc()| instead of |XtMalloc()| to clear the |ManpageGlobals| structure correctly

[email protected] Fri, 8 Apr 2005 23:47:01 -0700 (PDT)
Newsgroups gmane.comp.freedesktop.release-wranglers
Message-ID <[email protected]>
Roland Mainz <[email protected]> has asked  for approval_X11R6.8.x:
Bug 2942: "xman" may crash when opening the print dialog
https://bugs.freedesktop.org/show_bug.cgi?id=2942

Attachment 2360: Patch for 2005-04-09-trunk which uses |XtCalloc()| instead of
|XtMalloc()| to clear the |ManpageGlobals| structure correctly
https://bugs.freedesktop.org/attachment.cgi?id=2360&action=edit

------- Additional Comments from Roland Mainz <[email protected]>
Requesting approval for X11R6.8.x stable branch. The patches cures a quite
common crasher in "xman"'s print dialog which may occur on opening the dialog
due an uninitalised structure.
 
The fix is to clear the structure before using it (=allocating it using
|XtCalloc()| instead of |XtMalloc()|).