projects
/
apps
/
pfixtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix a valgrind warning in unit test runner.
[apps/pfixtools.git]
/
postlicyd
/
tst-filters.c
diff --git
a/postlicyd/tst-filters.c
b/postlicyd/tst-filters.c
index
52f22a4
..
4dcbaa8
100644
(file)
--- a/
postlicyd/tst-filters.c
+++ b/
postlicyd/tst-filters.c
@@
-62,6
+62,8
@@
static char *read_query(const char *basepath, const char *filename,
if (end != NULL) {
*end = buff + (map.end - map.map);
**end = '\0';
+ } else {
+ buff[map.end - map.map] = '\0';
}
file_map_close(&map);
}