Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Null Test After Dereference  at fe-dcc-send.c:133

Categories: LANG.STRUCT.NTAD
Warning ID: 7341.28436
Procedure: sig_dcc_send_complete
Trace: view
Modified: Thu Nov 26 11:09:42 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
  /kat0/fletcher/SATE/2010/irssi-0.8.14/src/fe-common/irc/dcc/fe-dcc-send.c
  Enter sig_dcc_send_complete
116 static void sig_dcc_send_complete(GList **list, WINDOW_REC *window,
117                                   const char *word, const char *line,
118                                   int *want_space) 
119 {
120         char *path;
121  
122         g_return_if_fail(list != NULL);
123         g_return_if_fail(word != NULL);
124         g_return_if_fail(line != NULL);
125  
126         if (*line == '\0' || strchr(line, ' ') != NULL)
127                 return;
128  
129         /* completing filename parameter for /DCC SEND */ 
130         path = convert_home(settings_get_str("dcc_upload_path"));
131         if (*path == '\0') {
132                 /* use the default path */ 
133                 g_free_and_null(path);     /* Null Test After Dereference */
134         }
135  
136         *list = filename_complete(word, path);
137  
138         if (*list != NULL) {
139                 *want_space = FALSE;
140                 signal_stop();
141         }
142 } 




Change Warning 7341.28436 : Null Test After Dereference

Priority:
State:
Finding:
Owner:
Note: