Text   |  XML   |  ReML   |   Visible Warnings:

Ignored Return Value  at file_access.c:901

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

wtap_dump_open_finish

(/home/sate/Testcases/c/cve/wireshark-1.2.0/wiretap/file_access.c)expand/collapse
Show more  
 886  static gboolean wtap_dump_open_finish(wtap_dumper *wdh, int filetype, gboolean compressed, int *err)
 887  {
 888          int fd;
 889          gboolean cant_seek;
 890   
 891          /* Can we do a seek on the file descriptor?
 892             If not, note that fact. */
 893          if(compressed) {
 894                  cant_seek = TRUE;
 895          } else {
 896                  fd = fileno(wdh->fh);
 897                  if (lseek(fd, 1, SEEK_CUR) == -1)
 898                          cant_seek = TRUE;
 899                  else {
 900                          /* Undo the seek. */
 901                          lseek(fd, 0, SEEK_SET);
 902                          cant_seek = FALSE;
 903                  }
 904          }
 905   
 906          /* Now try to open the file for writing. */
 907          if (!(*dump_open_table[filetype].dump_open)(wdh, cant_seek, err)) {
 908                  return FALSE;
 909          }
 910   
 911          return TRUE;    /* success! */
 912  }
Show more  




Change Warning 5534.35809 : Ignored Return Value

Priority:
State:
Finding:
Owner:
Note: