Test got reverted when converted to skalibs new API (i.e. memchr)
---
 src/execline/getpid.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/execline/getpid.c b/src/execline/getpid.c
index 7fb39ac..dd9623a 100644
--- a/src/execline/getpid.c
+++ b/src/execline/getpid.c
@@ -15,7 +15,7 @@ int main (int argc, char const *const *argv, char const 
*const *envp)
   PROG = "getpid" ;
   if (argc < 3) strerr_dieusage(100, USAGE) ;
   len = strlen(argv[1]) ;
-  if (!memchr(argv[1], '=', len))
+  if (memchr(argv[1], '=', len))
     strerr_dief2x(100, "invalid variable name: ", argv[1]) ;
   {
     size_t i = len+1 ;
-- 
2.12.2

Reply via email to