diff options
author | Peter Wemm <peter@FreeBSD.org> | 1996-03-04 19:46:16 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 1996-03-04 19:46:16 +0000 |
commit | 5844cf44f96da1914feedb0d6cd014237fc5b6cb (patch) | |
tree | f9feeaadd7f5e0575fa141c5e72bf89d5f4bf3e0 | |
parent | fccfc0d56b3e7190d11d072322b923f654dbe225 (diff) |
Notes
-rw-r--r-- | sys/i386/linux/linux_misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/linux/linux_misc.c b/sys/i386/linux/linux_misc.c index 5af00b996f4b2..b1dba290d8458 100644 --- a/sys/i386/linux/linux_misc.c +++ b/sys/i386/linux/linux_misc.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: linux_misc.c,v 1.2 1995/10/04 07:08:04 julian Exp $ + * $Id: linux_misc.c,v 1.1.4.1 1995/10/07 12:31:18 davidg Exp $ */ #include <i386/linux/linux.h> @@ -493,7 +493,7 @@ linux_time(struct proc *p, struct linux_time_args *args, int *retval) #endif microtime(&tv); tm = tv.tv_sec; - if (error = copyout(&tm, args->tm, sizeof(linux_time_t))) + if (args->tm && (error = copyout(&tm, args->tm, sizeof(linux_time_t)))) return error; *retval = tv.tv_sec; return 0; |