From 82b36c8ac33a765eb115cfd3e63a6c5a91897064 Mon Sep 17 00:00:00 2001 From: qorg11 Date: Wed, 3 Jun 2020 21:50:58 +0200 Subject: [PATCH] Clean code in src/echo.c --- src/echo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/echo.c b/src/echo.c index 1474803..19c897a 100644 --- a/src/echo.c +++ b/src/echo.c @@ -5,7 +5,7 @@ int main(int argc, char *argv[]) { int nflag; - if(strcmp(argv[1], "-n") == 0) + if(!strcmp(argv[1], "-n")) nflag = 1; ++argv; while(*argv) {