Text   |  XML   |  ReML   |   Visible Warnings:

Uninitialized Variable  at capture_sync.c:1040

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

pipe_data_available

(/home/sate/Testcases/c/cve/wireshark-1.2.0/capture_sync.c)expand/collapse
Show more  
 1021  static gboolean pipe_data_available(int pipe) {
 1022  #ifdef _WIN32 /* PeekNamedPipe */
 1023      HANDLE hPipe = (HANDLE) _get_osfhandle(pipe);
 1024      DWORD bytes_avail;
 1025   
 1026      if (hPipe == INVALID_HANDLE_VALUE)
 1027          return FALSE;
 1028   
 1029      if (! PeekNamedPipe(hPipe, NULL, 0, NULL, &bytes_avail, NULL))
 1030          return FALSE;
 1031   
 1032      if (bytes_avail > 0)
 1033          return TRUE;
 1034      return FALSE;
 1035  #else /* select */
 1036      fd_set rfds;
 1037      struct timeval timeout;
 1038   
 1039      FD_ZERO(&rfds);
 1040      FD_SET(pipe, &rfds);
Show more  




Change Warning 3992.29644 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: