svn commit: r245176 - projects/mtree/usr.bin/xinstall
Brooks Davis
brooks at FreeBSD.org
Tue Jan 8 20:49:44 UTC 2013
Author: brooks
Date: Tue Jan 8 20:49:43 2013
New Revision: 245176
URL: http://svnweb.freebsd.org/changeset/base/245176
Log:
When we are creating an empty file by installing /dev/null, set the
digestresult to NULL so it can be passed to free later.
Modified:
projects/mtree/usr.bin/xinstall/xinstall.c
Modified: projects/mtree/usr.bin/xinstall/xinstall.c
==============================================================================
--- projects/mtree/usr.bin/xinstall/xinstall.c Tue Jan 8 19:38:57 2013 (r245175)
+++ projects/mtree/usr.bin/xinstall/xinstall.c Tue Jan 8 20:49:43 2013 (r245176)
@@ -794,6 +794,8 @@ install(const char *from_name, const cha
if (!devnull)
digestresult = copy(from_fd, from_name, to_fd,
tempcopy ? tempfile : to_name, from_sb.st_size);
+ else
+ digestresult = NULL;
}
if (dostrip) {
More information about the svn-src-projects
mailing list