Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Empty if Statement  at dcc-server.c:230

Categories: LANG.STRUCT.EBS
Warning ID: 637.637
Procedure: dcc_server_msg
Trace: View
Modified: Wed Sep 2 11:35:46 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
   /u1/paul/SATE/2010/c/irssi/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 637.637 : Empty if Statement

Priority:
State:
Finding:
Owner:
Note: