function argument should be a pointer

This commit is contained in:
nvt-se 2008-11-13 14:46:32 +00:00
parent 29b0d010d5
commit 2ec836f1f9

View file

@ -288,7 +288,7 @@ find_file(const char *name)
do { do {
read_header(&hdr, page); read_header(&hdr, page);
if(COFFEE_PAGE_ACTIVE(hdr)) { if(COFFEE_PAGE_ACTIVE(hdr)) {
if(dir_cache_find(name[0]) == -1) { if(dir_cache_find(name) == -1) {
dir_cache_add(name[0], page); dir_cache_add(name[0], page);
} }
if(strcmp(name, hdr.name) == 0) { if(strcmp(name, hdr.name) == 0) {