Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Null Test After Dereference  at notifylist.c:163

Categories: LANG.STRUCT.NTAD
Warning ID: 7278.28366
Procedure: notifylist_ison_serverlist
Trace: view
Modified: Thu Nov 26 11:09:07 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/irc/notifylist/notifylist.c
  Enter notifylist_ison_serverlist
143 static IRC_SERVER_REC *notifylist_ison_serverlist(const char *nick, const char *taglist) 
144 {
145         IRC_SERVER_REC *server;
146         char **list, **tmp;
147  
148         g_return_val_if_fail(nick != NULL, NULL);
149         g_return_val_if_fail(taglist != NULL, NULL);
150  
151         list = g_strsplit(taglist, " ", -1);
152  
153         server = NULL;
154         for (tmp = list; *tmp != NULL; tmp++) {
155                 server = (IRC_SERVER_REC *) server_find_chatnet(*tmp);
156  
157                 if (IS_IRC_SERVER(server) &&
158                     notifylist_ison_server(server, nick))
159                         break;
160         }
161         g_strfreev(list);
162  
163         return tmp == NULL ? NULL : server;     /* Null Test After Dereference */
164 } 




Change Warning 7278.28366 : Null Test After Dereference

Priority:
State:
Finding:
Owner:
Note: