git.samba.org
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
981791b
)
paranoid check for null buffer in unmap
author
Andrew Tridgell
<tridge@samba.org>
Tue, 25 Jun 1996 04:16:02 +0000
(
04:16
+0000)
committer
Andrew Tridgell
<tridge@samba.org>
Tue, 25 Jun 1996 04:16:02 +0000
(
04:16
+0000)
util.c
patch
|
blob
|
history
diff --git
a/util.c
b/util.c
index ad4dec9506c2654c1fa34942e658da99e4f30d2f..4da0931a6dd502ac94c5464724df9a616aa3c646 100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-112,7
+112,7
@@
char *map_file(int fd,off_t len)
void unmap_file(char *buf,off_t len)
{
- if (len > 0)
+ if (len > 0
&& buf
)
munmap(buf,len);
}