diff options
author | 2006-06-29 00:41:52 +0000 | |
---|---|---|
committer | 2006-06-29 00:41:52 +0000 | |
commit | fe6c66d14cdccd1a1172e828d9c51d8928c42d8e (patch) | |
tree | 95d00fe0504eff80fb35aeaddbe4d3b86f932d84 /usr.bin/cvs/commit.c | |
parent | try prom mapping first, then memory mapping, then io mapping.. this works (diff) | |
download | wireguard-openbsd-fe6c66d14cdccd1a1172e828d9c51d8928c42d8e.tar.xz wireguard-openbsd-fe6c66d14cdccd1a1172e828d9c51d8928c42d8e.zip |
it is a really good idea to store the result cvs_buf_load_fd returns
in bp, considering we depend on that.
found by reyk who is now my favorite german person, 10x.
Diffstat (limited to 'usr.bin/cvs/commit.c')
-rw-r--r-- | usr.bin/cvs/commit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/commit.c b/usr.bin/cvs/commit.c index e9dbea34d19..795d79a78bb 100644 --- a/usr.bin/cvs/commit.c +++ b/usr.bin/cvs/commit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: commit.c,v 1.77 2006/06/28 18:52:05 reyk Exp $ */ +/* $OpenBSD: commit.c,v 1.78 2006/06/29 00:41:52 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org> @@ -404,7 +404,7 @@ commit_desc_set(struct cvs_file *cf) return; } - cvs_buf_load_fd(fd, BUF_AUTOEXT); + bp = cvs_buf_load_fd(fd, BUF_AUTOEXT); cvs_buf_putc(bp, '\0'); desc = cvs_buf_release(bp); |