From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 076DA45CFC; Thu, 14 Nov 2024 02:55:07 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3AF0342D28; Thu, 14 Nov 2024 02:54:29 +0100 (CET) Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) by mails.dpdk.org (Postfix) with ESMTP id 7E521427B7 for ; Thu, 14 Nov 2024 02:54:24 +0100 (CET) Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-724455f40a0so47472b3a.0 for ; Wed, 13 Nov 2024 17:54:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1731549264; x=1732154064; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=IzMrfQ1uQqOrLfACKv9cfd36bC5HKr+gi0POyVHNIlU=; b=xqRHHvi5gn2gO4mm3IFr3+soHFkXM0AMWLoXq9b44qfelN6chT02J+aceLap9RM0DC 1dlrrxay2o+b3cQgEWDTnaMFmvKDyiT+D/gVyUwjPdxju/6lL0v5AujckP5nO6UvNMdf 56T3hNe+cnEP1h4bR18RddEeL8f8awuYK0lemkwrMEy8xR4oCkj/PHnE7gCF69FuulUW VTccXDiVh4b0L9EZoOQxApzO1ZADM6WJ5CYbrB7RKupW+tA3MYsEuPrCZ04ebAYm71sP 5tSslTFDZpwBhXFQ1lcCCwSMsj89gN8WAyLrrlMWmfTxygZ8Q+/hFFGYSctTOKj/Zufp Ahog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731549264; x=1732154064; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IzMrfQ1uQqOrLfACKv9cfd36bC5HKr+gi0POyVHNIlU=; b=lO7p5u90y8VY/2yZoYh/INtBVLHMK0E4HkAk14BJxhj2R4jo7X7tFPRSIj4fcW/ZMh eZ1J8yFsjdImT43HHYALirxPkjvv3GSyz3FG3DP7f53sbN+JYosg+oi8Kk8KenlGeUaM RSFUWd4ei9bP+4o8jLjosJJGiccFSdnzz+Uf1YK4x/Wl7OocW6CGGqXmxbRbr+FsWASo HK7Bw9+MYsTMss5pLiYEfR6jKMHxpY3oCXaLQBNVmkJZnReDDBRdhUIeQ/DHiR2hjbkT s3s6U99J1hzSpbBmdY/gW0BUorqSh3reR2Og2Sqs87luntYFWnSyw3OLE89fBa7yXozt JwbQ== X-Gm-Message-State: AOJu0Yz50vG0FuNL5DAX5GyFfoeledwdTfTdJ4+DDQ1EEVS85bmHNyHZ xOXCTWagvgEsiV2Rn5dCTQV8lpMtCqTI9G2YomXyvA/hXX6mmy4xZnI297DJON+jkN2Sumh5ifU z X-Google-Smtp-Source: AGHT+IE2gQORdUyuIMHEDVxzAueEbpntj98Cz46vaLrKr8G16dcNw/NuSlc7Hxzij4LUokyIXgccSw== X-Received: by 2002:a05:6a20:9183:b0:1db:ece3:f8ed with SMTP id adf61e73a8af0-1dc228b024dmr31662956637.6.1731549263655; Wed, 13 Nov 2024 17:54:23 -0800 (PST) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2ea02496eedsm210050a91.18.2024.11.13.17.54.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Nov 2024 17:54:23 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v2 8/8] test: remove unneeded memset Date: Wed, 13 Nov 2024 17:52:22 -0800 Message-ID: <20241114015405.77060-9-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241114015405.77060-1-stephen@networkplumber.org> References: <20241114011129.451243-1-stephen@networkplumber.org> <20241114015405.77060-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Since tmp is not used later in the function, this memset is unnecessary. Even though this is harmless, it causes tools that look for security issues around memset to flag this a bug. Signed-off-by: Stephen Hemminger --- app/test/test_cmdline_cirbuf.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/test/test_cmdline_cirbuf.c b/app/test/test_cmdline_cirbuf.c index 8ac326cb02..1be357abf6 100644 --- a/app/test/test_cmdline_cirbuf.c +++ b/app/test/test_cmdline_cirbuf.c @@ -281,8 +281,6 @@ test_cirbuf_string_add_del_reverse(void) printf("Error: buffer should have been empty!\n"); return -1; } - /* clear tmp buffer */ - memset(tmp, 0, sizeof(tmp)); /* * reinitialize circular buffer -- 2.45.2