emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem report #99 [3/4]


From: Dan Nicolaescu
Subject: problem report #99 [3/4]
Date: Mon, 1 Dec 2008 08:56:08 -0800 (PST)

CID: 99
Checker: UNINIT (help)
File: base/src/emacs/src/keyboard.c
Function: kbd_buffer_get_event
Description: Using uninitialized value "time" in call to function 
"make_lispy_movement

Event var_decl: Declared variable "time" without initializer
Also see events: [uninit_use_in_call]

4262          unsigned long time;
4263    
4264          *kbp = current_kboard;
4265          /* Note that this uses F to determine which terminal to look at.
4266             If there is no valid info, it does not store anything
4267             so x remains nil.  */
4268          x = Qnil;
4269    
4270          /* XXX Can f or mouse_position_hook be NULL here? */

At conditional (1): "f != 0" taking false path

4271          if (f && FRAME_TERMINAL (f)->mouse_position_hook)
4272            (*FRAME_TERMINAL (f)->mouse_position_hook) (&f, 0, &bar_window,
4273                                                        &part, &x, &y, 
&time);
4274    
4275          obj = Qnil;
4276    
4277          /* Decide if we should generate a switch-frame event.  Don't
4278             generate switch-frame events for motion outside of all Emacs
4279             frames.  */

At conditional (2): "x != Qnil" taking true path
At conditional (3): "f != 0" taking false path

4280          if (!NILP (x) && f)
4281            {
4282              Lisp_Object frame;
4283    
4284              frame = FRAME_FOCUS_FRAME (f);
4285              if (NILP (frame))
4286                XSETFRAME (frame, f);
4287    
4288              if (! EQ (frame, internal_last_event_frame)
4289                  && !EQ (frame, selected_frame))
4290                obj = make_lispy_switch_frame (frame);
4291              internal_last_event_frame = frame;
4292            }
4293    
4294          /* If we didn't decide to make a switch-frame event, go ahead and
4295             return a mouse-motion event.  */

At conditional (4): "x != Qnil" taking true path
At conditional (5): "obj == Qnil" taking true path

4296          if (!NILP (x) && NILP (obj))

Event uninit_use_in_call: Using uninitialized value "time" in call to function 
"make_lispy_movement" [model]
Also see events: [var_decl]

4297            obj = make_lispy_movement (f, bar_window, part, x, y, time);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]