diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2005-05-12 17:32:17 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2005-05-12 17:32:17 +0000 |
commit | 0d2ea09ba3d08079bffd80802508fce862db44e6 (patch) | |
tree | c55e6872f9e85d16ce3eab9c3ac823596bc712cf /usr.bin/cvs/resp.c | |
parent | fc35611f3af38412733c6952f64378b928e5b4c6 (diff) |
fix segfault in cvs_resp_error()
Diffstat (limited to 'usr.bin/cvs/resp.c')
-rw-r--r-- | usr.bin/cvs/resp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/cvs/resp.c b/usr.bin/cvs/resp.c index 73248428044..7888593be39 100644 --- a/usr.bin/cvs/resp.c +++ b/usr.bin/cvs/resp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: resp.c,v 1.32 2005/05/11 00:07:57 joris Exp $ */ +/* $OpenBSD: resp.c,v 1.33 2005/05/12 17:32:16 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -307,6 +307,8 @@ cvs_resp_ok(struct cvsroot *root, int type, char *line) static int cvs_resp_error(struct cvsroot *root, int type, char *line) { + if (line == NULL) + return (1); /* XXX - GNU cvs sends an empty error message * at the end of the diff command, even for successfull |