1
0
Fork 0

avoid reading of uninitialized data. thanks to valgrind

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@146 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
This commit is contained in:
Xuefer 2006-09-08 13:13:59 +00:00
parent cf59070b9f
commit 2964ae1d75
2 changed files with 6 additions and 2 deletions

View File

@ -199,7 +199,9 @@ if ($cachelist) {
}
$ctime = age($entry['ctime']);
$atime = age($entry['atime']);
$dtime = age($entry['dtime']);
if ($listname == 'Deleted') {
$dtime = age($entry['dtime']);
}
echo <<<ENTRY
<td>{$entry['cache_name']} {$i}</td>

View File

@ -450,7 +450,9 @@ static void xc_fillentry_dmz(xc_entry_t *entry, int del, zval *list TSRMLS_DC) /
add_assoc_long_ex(ei, ZEND_STRS("hits"), entry->hits);
add_assoc_long_ex(ei, ZEND_STRS("ctime"), entry->ctime);
add_assoc_long_ex(ei, ZEND_STRS("atime"), entry->atime);
add_assoc_long_ex(ei, ZEND_STRS("dtime"), entry->dtime);
if (del) {
add_assoc_long_ex(ei, ZEND_STRS("dtime"), entry->dtime);
}
#ifdef IS_UNICODE
do {
zval *zv;