Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
More refactoring - most of functions now have core_t *core and buf_t …
Browse files Browse the repository at this point in the history
…*buf arguments
  • Loading branch information
XVilka committed May 27, 2012
1 parent ff56cfd commit 94ac161
Show file tree
Hide file tree
Showing 21 changed files with 928 additions and 900 deletions.
6 changes: 4 additions & 2 deletions blocks.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,10 @@ int blocks__Iterator(buf_t *buf, int (*(func))(), int result)
t = buf->blocks;
while (t != NULL)
{
if ((*(func))(&(t->item)) == result) {
return 0;
if (t->item.id != 0) {
if ((*(func))(&(t->item)) == result) {
return 0;
}
}
t = t->next;
}
Expand Down
Loading

0 comments on commit 94ac161

Please sign in to comment.