Changeset 2964ae1 in git


Ignore:
Timestamp:
2006-09-08T13:13:59Z (13 years ago)
Author:
Xuefer <xuefer@…>
Branches:
1.1, 1.2, 1.3, 3.0, 3.1, 3.2, master, trunk
Children:
a29d074
Parents:
cf59070
Message:

avoid reading of uninitialized data. thanks to valgrind

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@146 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • admin/xcache.tpl.php

    r255ddf1 r2964ae1  
    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
  • xcache.c

    r9c3e3d9 r2964ae1  
    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.