Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Redundant Condition  at fe-dcc-get.c:110

Categories: LANG.STRUCT.RC CWE:570 CWE:571
Warning ID: 2276.2282
Similar Warnings: 2276.2284
Procedure: dcc_error_close_not_found
Trace: View
Modified: Wed Sep 2 11:55:53 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/fe-common/irc/dcc/fe-dcc-get.c
   Enter dcc_error_close_not_found
 102 static void dcc_error_close_not_found(const char *type, const char *nick,
 103                                       const char *fname) 
 104 {
 105         g_return_if_fail(type != NULL);
 106         g_return_if_fail(nick != NULL);
 107         g_return_if_fail(fname != NULL);
 108         if (g_ascii_strcasecmp(type, "GET") != 0) return;
 109  
Never True: fname == 0110         if (fname == '\0') fname = "(ANY)";     /* Redundant Condition */  /* Unreachable Computation (ID: 2277.2283) */
 111         printformat(NULL, NULL, MSGLEVEL_DCC,
 112                     IRCTXT_DCC_GET_NOT_FOUND, nick, fname);
 113 




Change Warning 2276.2282 : Redundant Condition

Because they are very similar, this warning shares annotations with warning 2276.2284.

Priority:
State:
Finding:
Owner:
Note: