Changeset 121

Show
Ignore:
Timestamp:
07/09/05 13:31:10 (3 years ago)
Author:
zoeloelip
Message:

Future check warning was done on uninitialised buf.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • eaccelerator/trunk/ChangeLog

    r120 r121  
    66        * Code clean up and compile fixes for VC.net + VC.net project files update 
    77          (Based on patch #1234919) 
     8        * Future check warning was done on uninitialised buf. 
    89 
    9102005-07-07 Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> 
  • eaccelerator/trunk/eaccelerator.c

    r120 r121  
    12121212  int   nreloads; 
    12131213  time_t compile_time; 
     1214  int stat_result = 0; 
    12141215 
    12151216#ifdef EACCELERATOR_USE_INODE 
     
    12261227#endif 
    12271228  compile_time = time(0); 
     1229  stat_result = eaccelerator_stat(file_handle, realname, &buf TSRMLS_CC); 
    12281230  if (buf.st_mtime >= compile_time && eaccelerator_debug > 0) { 
    12291231        ea_debug_log("[%d] EACCELERATOR: Warning: \"%s\" is cached but it's mtime is in the future.\n",  
     
    12311233  } 
    12321234   
    1233   if (!MMCG(enabled) || 
    1234       (eaccelerator_mm_instance == NULL) || 
    1235       !eaccelerator_mm_instance->enabled || 
    1236       file_handle == NULL || 
    1237       file_handle->filename == NULL || 
    1238       eaccelerator_stat(file_handle, realname, &buf TSRMLS_CC) != 0 || 
     1235  if (!MMCG(enabled) || (eaccelerator_mm_instance == NULL) || 
     1236      !eaccelerator_mm_instance->enabled || file_handle == NULL || 
     1237      file_handle->filename == NULL || stat_result != 0 || 
    12391238#ifdef EACCELERATOR_USE_INODE 
    12401239      0) {