Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Redundant Condition  at fe-dcc-send.c:111

Categories: LANG.STRUCT.RC CWE:570 CWE:571
Warning ID: 7339.28434
Similar Warnings: 7339.28432
Procedure: dcc_error_close_not_found
Trace: view
Modified: Thu Nov 26 11:09:41 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/fe-common/irc/dcc/fe-dcc-send.c
   Enter dcc_error_close_not_found
 103 static void dcc_error_close_not_found(const char *type, const char *nick,
 104                                       const char *fname) 
 105 {
 106         g_return_if_fail(type != NULL);
 107         g_return_if_fail(nick != NULL);
 108         g_return_if_fail(fname != NULL);
 109         if (g_ascii_strcasecmp(type, "SEND") != 0) return;
 110  
Never True: fname == 0111         if (fname == '\0') fname = "(ANY)";     /* Redundant Condition */  /* Unreachable Computation (ID: 7340.28435) */
 112         printformat(NULL, NULL, MSGLEVEL_DCC,
 113                     IRCTXT_DCC_SEND_NOT_FOUND, nick, fname);
 114 } 




Change Warning 7339.28434 : Redundant Condition

Because they are very similar, this warning shares annotations with warning 7339.28432.
CodeSonar has selected warning 7339.28432 to represent this group of similar warnings. In order to edit this group, you must edit warning 7339.28432.