Text   |  XML   |  ReML   |   Visible Warnings:

Uninitialized Variable  at mail-transaction-log.c:256

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

mail_transaction_log_rotate

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-index/mail-transaction-log.c)expand/collapse
Show more  
 237  int mail_transaction_log_rotate(struct mail_transaction_log *log, bool reset)
 238  {
 239          struct mail_transaction_log_file *file;
 240          const char *path = log->head->filepath;
 241          struct stat st;
 242   
 243          i_assert(log->head->locked);
 244   
 245          if (MAIL_INDEX_IS_IN_MEMORY(log->index)) {
 246                  file = mail_transaction_log_file_alloc_in_memory(log);
 247                  if (reset) {
 248                          file->hdr.prev_file_seq = 0;
 249                          file->hdr.prev_file_offset = 0;
 250                  }
 251          } else {
 252                  /* we're locked, we shouldn't need to worry about ESTALE 
 253                     problems in here. */
 254                  if (fstat(log->head->fd, &st) < 0) {
 255                          mail_index_file_set_syscall_error(log->index,
 256                                  file->filepath, "fstat()");
Show more  




Change Warning 7217.25562 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: