Changeset 146 in svn for trunk


Ignore:
Timestamp:
2006-09-08T15:13:59+02:00 (9 years ago)
Author:
Xuefer
Message:

avoid reading of uninitialized data. thanks to valgrind

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/xcache.tpl.php

    r125 r146  
    200200            $ctime = age($entry['ctime']);
    201201            $atime = age($entry['atime']);
    202             $dtime = age($entry['dtime']);
     202            if ($listname == 'Deleted') {
     203                $dtime = age($entry['dtime']);
     204            }
    203205
    204206            echo <<<ENTRY
  • trunk/xcache.c

    r143 r146  
    451451    add_assoc_long_ex(ei, ZEND_STRS("ctime"),    entry->ctime);
    452452    add_assoc_long_ex(ei, ZEND_STRS("atime"),    entry->atime);
    453     add_assoc_long_ex(ei, ZEND_STRS("dtime"),    entry->dtime);
     453    if (del) {
     454        add_assoc_long_ex(ei, ZEND_STRS("dtime"), entry->dtime);
     455    }
    454456#ifdef IS_UNICODE
    455457    do {
Note: See TracChangeset for help on using the changeset viewer.