Mercurial > hg > xemacs-beta
comparison src/input-method-xlib.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 | 3d8143fc88e1 |
children | 5333f383efbd |
comparison
equal
deleted
inserted
replaced
3461:fd2936bbfc5f | 3462:6c7605dfcf07 |
---|---|
382 | 382 |
383 | 383 |
384 void | 384 void |
385 XIM_SetGeometry (struct frame *f) | 385 XIM_SetGeometry (struct frame *f) |
386 { | 386 { |
387 XIC xic = FRAME_X_XIC (f); | 387 XIC xic; |
388 XIMStyle style = FRAME_X_XIC_STYLE (f); | 388 XIMStyle style; |
389 XRectangle area; | 389 XRectangle area; |
390 | 390 |
391 if (!xic || !f) | 391 if (!f) |
392 return; | 392 return; |
393 | 393 |
394 xic = FRAME_X_XIC (f); | |
395 if (!xic) | |
396 return; | |
397 | |
398 style = FRAME_X_XIC_STYLE (f); | |
394 if (style & XIMStatusArea) | 399 if (style & XIMStatusArea) |
395 { | 400 { |
396 /* Place Status Area in bottom right corner */ | 401 /* Place Status Area in bottom right corner */ |
397 /* Negotiate geometry of status area */ | 402 /* Negotiate geometry of status area */ |
398 /* See O'Reilly Xlib XIM chapter (but beware, it's buggy) */ | 403 /* See O'Reilly Xlib XIM chapter (but beware, it's buggy) */ |