Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
a quick fix for a segmentation fault in zlib I am getting whenever I
[rsync/rsync.git]
/
zlib
/
zutil.c
diff --git
a/zlib/zutil.c
b/zlib/zutil.c
index
7fb0327
..
2aafdab
100644
(file)
--- a/
zlib/zutil.c
+++ b/
zlib/zutil.c
@@
-213,7
+213,7
@@
void zcfree (opaque, ptr)
voidpf opaque;
voidpf ptr;
{
- free(ptr);
+
if (ptr)
free(ptr);
if (opaque) return; /* make compiler happy */
}