summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--user/grep.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/user/grep.c b/user/grep.c
index 152c8a8..5e1f2c0 100644
--- a/user/grep.c
+++ b/user/grep.c
@@ -26,8 +26,6 @@ grep(char *pattern, int fd)
}
p = q+1;
}
- if(p == buf)
- m = 0;
if(m > 0){
m -= p - buf;
memmove(buf, p, m);