Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Empty if Statement  at dcc-server.c:230

Categories: LANG.STRUCT.EBS
Warning ID: 1343.26789
Procedure: dcc_server_msg
Trace: view
Modified: Thu Nov 26 11:00:02 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     
ProblemLineSource
   /kat0/fletcher/SATE/2010/irssi-0.8.14/src/irc/dcc/dcc-server.c
   Enter dcc_server_msg
 220                                               (dccchat->server) ? dccchat->server->nick : "??");
 221                         net_sendbuffer_send(dccchat->sendbuf, str, strlen(str));
 222                         g_free(str);
 223                 }
 224         }
 225  
 226         /* Check for FSERVE protocol */ 
 227         if (g_ascii_strncasecmp(msg, "110 ", 4) == 0) {
 228                 msg += 4;
 229                 /* Check if this server is accepting fserve requests.*/ 
Body of if has no effect230                 if (dcc->accept_fserve) {     /* Empty if Statement */
 231                         /* TODO - Connect and start DCC Fserve */ 
 232                 }
 233         }
 234  
 235         /* Check for SEND protocol */ 
 236         if (g_ascii_strncasecmp(msg, "120 ", 4) == 0) {
 237                 msg += 4;
 238                 /* Check if this server is accepting send requests.*/ 
 239                 if (dcc->accept_send) {
 240                         /* Connect and start DCC Send */ 




Change Warning 1343.26789 : Empty if Statement

Priority:
State:
Finding:
Owner:
Note: