Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Test After Dereference  at gui-readline.c:108

Categories: LANG.STRUCT.NTAD
Warning ID: 2367.2378
Procedure: handle_entry_redirect
Trace: View
Modified: Wed Sep 2 12:21:59 2009   show details
 
Priority: None
State: None
Finding: None
Owner: None
  edit properties

Legend [ X ]
Warning Location
Contributes
Parse Error
Other Warning
Two or More Loop Iterations
On Execution Path
Comment
Macro
Preprocessor
Include
Keyword
Preprocessed Away

Source  |  Language: C Hide Legend     
LineSource
  /u1/paul/SATE/2010/c/irssi/irssi-0.8.14/src/fe-text/gui-readline.c
  Enter handle_entry_redirect
99 static void handle_entry_redirect(const char *line) 
100 {
101         ENTRY_REDIRECT_ENTRY_FUNC func;
102         void *data;
103  
104         gui_entry_set_hidden(active_entry, FALSE);
105  
106         func = (ENTRY_REDIRECT_ENTRY_FUNC) redir->func;   /* Dangerous Function Cast (ID: 1732.1732) */
107         data = redir->data;
108         g_free_and_null(redir);     /* Null Test After Dereference */
109  
110         gui_entry_set_prompt(active_entry, "");
111  
112         if (func != NULL) {
113                 func(line, data, active_win->active_server,
114                      active_win->active);
115         }
116 




Change Warning 2367.2378 : Null Test After Dereference

Priority:
State:
Finding:
Owner:
Note: