Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Ignored Return Value  at dcc-send.c:271

Categories: LANG.FUNCS.IRV CWE:252 CWE:253 POW10:7
Warning ID: 2406.2421
Procedure: dcc_send_data
Trace: View
Modified: Wed Sep 2 12:25:26 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/dcc/dcc-send.c
  Enter dcc_send_data
252 static void dcc_send_data(SEND_DCC_REC *dcc) 
253 {
254         char buffer[512];
255         int ret;
256  
257         ret = read(dcc->fhandle, buffer, sizeof(buffer));
258         if (ret <= 0) {
259                 /* no need to call this function anymore..
260                    in fact it just eats all the cpu.. */ 
261                 dcc->waitforend = TRUE;
262                 g_source_remove(dcc->tagwrite);
263                 dcc->tagwrite = -1;
264                 return;
265         }
266  
267         ret = net_transmit(dcc->handle, buffer, ret);
268         if (ret > 0) dcc->transfd += ret;
269         dcc->gotalldata = FALSE;
270  
271         lseek(dcc->fhandle, dcc->transfd, SEEK_SET);     /* Ignored Return Value */
272  
273         signal_emit("dcc transfer update", 1, dcc);
274 } 




Change Warning 2406.2421 : Ignored Return Value

Priority:
State:
Finding:
Owner:
Note: