diff options
author | Charles Longeau <chl@cvs.openbsd.org> | 2011-05-02 22:22:55 +0000 |
---|---|---|
committer | Charles Longeau <chl@cvs.openbsd.org> | 2011-05-02 22:22:55 +0000 |
commit | 4a7e0764d903531e6d73f5314ff9325e4ddf23fe (patch) | |
tree | 3772cca38700e5b22af697593437026698edf79e /usr.bin | |
parent | 5689b0d4d1aef8276eb576984e6acd3f14fe8e48 (diff) |
Fix bad return value check for rcsnum_cmp()
ok nickm@ xsa@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/cvs/rcs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/rcs.c b/usr.bin/cvs/rcs.c index 1046e1c2dc1..ece1a0b16ba 100644 --- a/usr.bin/cvs/rcs.c +++ b/usr.bin/cvs/rcs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcs.c,v 1.309 2011/03/27 14:15:02 nicm Exp $ */ +/* $OpenBSD: rcs.c,v 1.310 2011/05/02 22:22:54 chl Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -469,7 +469,7 @@ rcs_head_get(RCSFILE *file) /* HEAD should be the last revision on the default branch */ TAILQ_FOREACH(brp, &(rdp->rd_branches), rb_list) { if (rcsnum_cmp(brp->rb_num, file->rf_branch, - file->rf_branch->rn_len) == NULL) + file->rf_branch->rn_len) == 0) break; } rcsnum_free(rootrev); |