summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorRay Lai <ray@cvs.openbsd.org>2006-07-08 09:14:04 +0000
committerRay Lai <ray@cvs.openbsd.org>2006-07-08 09:14:04 +0000
commitd8aaf277a540b3ac999a3d657ca6fbe490f9f53d (patch)
tree93e10c0152e0604f24b9aedb7eee57c31d68e867 /usr.bin
parent8ffb35594b98812a9e894021ce2841d9fb61d613 (diff)
rcs_splitlines() can never return NULL, so don't check for it.
OK joris@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/rcs/rcsutil.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/usr.bin/rcs/rcsutil.c b/usr.bin/rcs/rcsutil.c
index 89c805cd2d7..3a7b3da11f8 100644
--- a/usr.bin/rcs/rcsutil.c
+++ b/usr.bin/rcs/rcsutil.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcsutil.c,v 1.16 2006/07/04 22:14:56 niallo Exp $ */
+/* $OpenBSD: rcsutil.c,v 1.17 2006/07/08 09:14:03 ray Exp $ */
/*
* Copyright (c) 2005, 2006 Joris Vink <joris@openbsd.org>
* Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org>
@@ -533,11 +533,8 @@ rcs_patchfile(BUF *data, BUF *patch,
len = rcs_buf_len(data);
- if ((dlines = rcs_splitlines(data)) == NULL)
- return (NULL);
-
- if ((plines = rcs_splitlines(patch)) == NULL)
- return (NULL);
+ dlines = rcs_splitlines(data);
+ plines = rcs_splitlines(patch);
if (p(dlines, plines) < 0) {
rcs_freelines(dlines);