comparison src/window.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 141c2920ea48
children 4d52aea479a2
comparison
equal deleted inserted replaced
3461:fd2936bbfc5f 3462:6c7605dfcf07
4378 { 4378 {
4379 if (widthflag) 4379 if (widthflag)
4380 { 4380 {
4381 int new_pixsize; 4381 int new_pixsize;
4382 sizep = &CURSIZE (w); 4382 sizep = &CURSIZE (w);
4383 dim = CURCHARSIZE (w); 4383 dim = window_char_width (w, 0);
4384 new_pixsize = inpixels?(*sizep + delta):(dim+delta); 4384 new_pixsize = inpixels?(*sizep + delta):(dim+delta);
4385 set_window_pixsize (window, new_pixsize, 0, 0); 4385 set_window_pixsize (window, new_pixsize, 0, 0);
4386 return; 4386 return;
4387 } 4387 }
4388 break; 4388 break;