diff options
Diffstat (limited to 'src/common/compat.c')
-rw-r--r-- | src/common/compat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/compat.c b/src/common/compat.c index ba0acec09..3156adea8 100644 --- a/src/common/compat.c +++ b/src/common/compat.c @@ -142,8 +142,8 @@ tor_mmap_file(const char *filename) size += (size%page_size) ? page_size-(size%page_size) : 0; if (!size) { - /* zero-length file. if we call mmap on it, we'll end up setting - * data to NULL below, and bad things will happen. So just fail. */ + /* Zero-length file. If we call mmap on it, it will succeed but + * return NULL, and bad things will happen. So just fail. */ log_notice(LD_FS,"File \"%s\" is empty. Ignoring.",filename); return NULL; } |