diff options
author | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2004-07-27 16:56:11 +0000 |
---|---|---|
committer | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2004-07-27 16:56:11 +0000 |
commit | 1fecfa10dd7373f8e08f7be6a152dc2aa47955e5 (patch) | |
tree | e3d5031324a2b6cfdfed81a51c8ef1cb98c1ebf3 /usr.bin/cvs/file.c | |
parent | 520e5cc1bbe135f17cfcfa7bc6f48d740a0efc72 (diff) |
Fix directory loading with the new file structure allocation code
Diffstat (limited to 'usr.bin/cvs/file.c')
-rw-r--r-- | usr.bin/cvs/file.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/cvs/file.c b/usr.bin/cvs/file.c index 73f87bac996..6d1e78de560 100644 --- a/usr.bin/cvs/file.c +++ b/usr.bin/cvs/file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.6 2004/07/27 12:01:58 jfb Exp $ */ +/* $OpenBSD: file.c,v 1.7 2004/07/27 16:56:10 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -365,6 +365,8 @@ cvs_file_getdir(struct cvs_file *cf, int flags) struct cvs_file *cfp; struct cvs_dir *cdp; + cdp = cf->cf_ddat; + if (cvs_readrepo(cf->cf_path, pbuf, sizeof(pbuf)) == 0) { cdp->cd_repo = strdup(pbuf); if (cdp->cd_repo == NULL) { |