Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Test After Dereference  at notifylist.c:163

Categories: LANG.STRUCT.NTAD
Warning ID: 2213.2219
Procedure: notifylist_ison_serverlist
Trace: View
Modified: Wed Sep 2 11:52:44 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/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 2213.2219 : Null Test After Dereference

Priority:
State:
Finding:
Owner:
Note: