Mercurial > hg > xemacs-beta
diff lwlib/xlwmenu.c @ 3462:6c7605dfcf07
[xemacs-hg @ 2006-06-19 18:19:33 by james]
Fix various problems found by static checkers: use of uninitialized values,
dereferencing pointers before checking whether they are NULL, memory leaks,
and incomplete checking of return values. <m3k67gpyhk.fsf@jerrypc.cs.usu.edu>
author | james |
---|---|
date | Mon, 19 Jun 2006 18:19:38 +0000 |
parents | 6aa26bef0527 |
children | 382b11fa8866 |
line wrap: on
line diff
--- a/lwlib/xlwmenu.c Mon Jun 19 18:10:19 2006 +0000 +++ b/lwlib/xlwmenu.c Mon Jun 19 18:19:38 2006 +0000 @@ -3630,8 +3630,8 @@ if (!mw->menu.pointer_grabbed) { XWindowAttributes ret; - Window parent,root; - Window *waste; + Window parent,root = 0UL; + Window *waste = NULL; unsigned int num_waste; lw_menu_active = True;