Text   |  XML   |  ReML   |   Visible Warnings:

Useless Assignment  at istream-zlib.c:238

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

i_stream_create_zlib

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/plugins/zlib/istream-zlib.c)expand/collapse
Show more  
 231  struct istream *i_stream_create_zlib(int fd)
 232  {
 233          struct zlib_istream *zstream;
 234          struct stat st;
 235   
 236          zstream = i_new(struct zlib_istream, 1);
 237          zstream->fd = fd;
 238          zstream->file = gzdopen(fd, "r");
 239          zstream->cached_size = (uoff_t)-1;
 240   
 241          zstream->istream.iostream.close = i_stream_zlib_close;
 242          zstream->istream.iostream.destroy = i_stream_zlib_destroy;
 243   
 244          zstream->istream.max_buffer_size = DEFAULT_MAX_BUFFER_SIZE;
 245          zstream->istream.read = i_stream_zlib_read;
 246          zstream->istream.seek = i_stream_zlib_seek;
 247          zstream->istream.stat = i_stream_zlib_stat;
 248          zstream->istream.sync = i_stream_zlib_sync;
 249   
 250          /* if it's a file, set the flags properly */
 251          if (fstat(fd, &st) == 0 && S_ISREG(st.st_mode)) {
 252                  zstream->istream.istream.blocking = TRUE;
 253                  zstream->istream.istream.seekable = TRUE;
 254          }
 255   
 256          zstream->istream.istream.readable_fd = FALSE;
 257          return i_stream_create(&zstream->istream, NULL, fd);
 258  }
Show more  




Change Warning 11973.24477 : Useless Assignment

Priority:
State:
Finding:
Owner:
Note: