diff options
author | lulf <lulf@FreeBSD.org> | 2008-11-19 14:57:00 +0000 |
---|---|---|
committer | lulf <lulf@FreeBSD.org> | 2008-11-19 14:57:00 +0000 |
commit | b389e1bc700b4a28122ab88274772ce7759c10ac (patch) | |
tree | 0b21b52c8165dcd04fd5efcec776a74544e6b15c /contrib/csup/rsyncfile.c | |
parent | 49d71b658410e80cf74bbb9e9eff44726c3ff914 (diff) | |
download | FreeBSD-src-b389e1bc700b4a28122ab88274772ce7759c10ac.zip FreeBSD-src-b389e1bc700b4a28122ab88274772ce7759c10ac.tar.gz |
A few general bugfixes:
- Use internal xmalloc instead of malloc.
- Include missing header after warnings.
- Fix unneeded printouts.
- Fix a bug when checking the CO_NORSYNC flag.
Diffstat (limited to 'contrib/csup/rsyncfile.c')
-rw-r--r-- | contrib/csup/rsyncfile.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/contrib/csup/rsyncfile.c b/contrib/csup/rsyncfile.c index a61b1cb..f256ccf 100644 --- a/contrib/csup/rsyncfile.c +++ b/contrib/csup/rsyncfile.c @@ -77,9 +77,7 @@ rsync_open(char *path, size_t blocksize, int read) struct stat st; int error; - rf = malloc(sizeof(*rf)); - if (rf == NULL) - return (NULL); + rf = xmalloc(sizeof(*rf)); error = stat(path, &st); if (error) { free(rf); |