From 65741d9b2ed555a1bb31eda574c7284e65e86ce3 Mon Sep 17 00:00:00 2001 From: Andrew Wood Date: Mon, 11 May 2026 20:59:42 +0100 Subject: [PATCH] Remove needless "continue" in the empty "for" loop (cppcheck recommendation). --- src/pv/proctitle.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pv/proctitle.c b/src/pv/proctitle.c index 93dbcd2..d1668c1 100644 --- a/src/pv/proctitle.c +++ b/src/pv/proctitle.c @@ -36,8 +36,7 @@ void initproctitle(int argc, char **argv) size_t env_array_size, env_index; /* Find the number of entries in the environment array. */ - for (env_array_size = 0; environ[env_array_size] != NULL; env_array_size++) - continue; + for (env_array_size = 0; environ[env_array_size] != NULL; env_array_size++); /* Allocate a new environment array. */ new_environment = (char **) malloc(sizeof(char *) * (env_array_size + 1));