ed

simple ed
git clone git://git.2f30.org/ed
Log | Files | Refs | LICENSE

commit 8f0675ff311974ff0e3ffc4bcc8827594b4efa7b
parent cd64b2f5a41d8f4471f7e2f1157786dc190e4f4c
Author: FRIGN <dev@frign.de>
Date:   Wed,  2 Dec 2015 16:28:18 +0100

Remove assert.h-include

Diffstat:
Med.c | 11++++-------
1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/ed.c b/ed.c @@ -4,7 +4,6 @@ #include <regex.h> #include <unistd.h> -#include <assert.h> #include <ctype.h> #include <limits.h> #include <setjmp.h> @@ -918,12 +917,10 @@ readcmd(int isglobal) char *s, *p; int c; - if (isglobal) { - if ((c = getchar()) == '&') { - if (getchar() != '\n') - error(""); /* TODO: what error? */ - cmdp = buf; - } + if (isglobal && (c = getchar()) == '&') { + if (getchar() != '\n') + error(""); /* TODO: what error? */ + cmdp = buf; } for (s = buf;; *s++ = c) {