diff options
author | Pascal Terjan <pterjan@google.com> | 2014-02-09 23:39:20 +0000 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2014-02-13 08:23:16 +0100 |
commit | 44beedb8c2b4e30b421b604fb1b044402a1d1ff6 (patch) | |
tree | 6cd39093cdf428f8d01e650cd862d86dd64c0219 /common/tests/test-lexer.c | |
parent | c59a6b577b7ba1990a7dc04a894c3bc4f4671471 (diff) |
Fix handling of mmap failure and mapping empty files
Check the return value of mmap() correctly.
Empty files cannot be mmap'd so we implement some
work around code for that.
https://bugs.freedesktop.org/show_bug.cgi?id=74773
Signed-off-by: Stef Walter <stef@thewalter.net>
Diffstat (limited to 'common/tests/test-lexer.c')
0 files changed, 0 insertions, 0 deletions