diff options
author | Jim Meyering <jim@meyering.net> | 2001-11-22 09:01:39 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-11-22 09:01:39 +0000 |
commit | c36eeadd49db9b233cdc831753901e84d9d5d9b9 (patch) | |
tree | 3ab9222908a340f6db69ce40f136b2096276fa80 | |
parent | a76c54f4c130eecbce3743adda6f496c9b057348 (diff) | |
download | coreutils-c36eeadd49db9b233cdc831753901e84d9d5d9b9.tar.xz |
csplit could get a failed assertion: printf 'a\n\n'|csplit - '/^$/' 2
No longer include assert.h.
(process_line_count): Remove invalid assertion.
-rw-r--r-- | src/csplit.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/csplit.c b/src/csplit.c index 7812e375a..adea98e63 100644 --- a/src/csplit.c +++ b/src/csplit.c @@ -21,7 +21,6 @@ #include <config.h> #include <stdio.h> -#include <assert.h> #include <getopt.h> #include <sys/types.h> #include <signal.h> @@ -769,12 +768,6 @@ process_line_count (const struct control *p, int repetition) linenum = get_first_line_in_buffer (); - /* Initially, I wanted to assert linenum < last_line_to_save, but that - condition is false for the valid command: echo | csplit - 1 '{*}'. - So, relax it just a little. */ - assert ((linenum == 1 && last_line_to_save == 1) - || linenum < last_line_to_save); - while (linenum++ < last_line_to_save) { line = remove_line (); |