projects
/
blerg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean up URL handling/parsing
[blerg.git]
/
database.c
diff --git
a/database.c
b/database.c
index
2da6530
..
6e9f494
100644
(file)
--- a/
database.c
+++ b/
database.c
@@
-36,7
+36,7
@@
void blerg_segment_close(struct blerg *blerg) {
if (blerg->data_fd != -1)
close(blerg->data_fd);
if (blerg->index != NULL)
if (blerg->data_fd != -1)
close(blerg->data_fd);
if (blerg->index != NULL)
- munmap((void *)blerg->index,
sizeof(RECORDS_PER_SEGMENT * sizeof(struct record)
));
+ munmap((void *)blerg->index,
RECORDS_PER_SEGMENT * sizeof(struct record
));
if (blerg->index_fd != -1)
close(blerg->index_fd);
}
if (blerg->index_fd != -1)
close(blerg->index_fd);
}