Browse Source

avoid reading of uninitialized data. thanks to valgrind

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@146 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
1.1
Xuefer 15 years ago
parent
commit
2964ae1d75
  1. 4
      admin/xcache.tpl.php
  2. 4
      xcache.c

4
admin/xcache.tpl.php

@ -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>

4
xcache.c

@ -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;

Loading…
Cancel
Save