mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix samba related crashes
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg166543.html git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38003 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
a671dc5851
commit
44c0b9d7da
@ -543,7 +543,9 @@ unsigned long FileName::checksum() const
|
|||||||
return result;
|
return result;
|
||||||
|
|
||||||
struct stat info;
|
struct stat info;
|
||||||
fstat(fd, &info);
|
if (fstat(fd, &info))
|
||||||
|
// bug 5891
|
||||||
|
return result;
|
||||||
|
|
||||||
void * mm = mmap(0, info.st_size, PROT_READ,
|
void * mm = mmap(0, info.st_size, PROT_READ,
|
||||||
MAP_PRIVATE, fd, 0);
|
MAP_PRIVATE, fd, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user