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 DE0E545CFC; Thu, 14 Nov 2024 03:38:39 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F2F9242DC7; Thu, 14 Nov 2024 03:38:02 +0100 (CET) Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) by mails.dpdk.org (Postfix) with ESMTP id F1728427DC for ; Thu, 14 Nov 2024 03:37:56 +0100 (CET) Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-72061bfec2dso39105b3a.2 for ; Wed, 13 Nov 2024 18:37:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1731551876; x=1732156676; 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=xL37J2KZvhW2KOWCVd1fERqf7h7ZKBw5I8acQ6xBsJQ81SwEAUKJ9euCzHw6793B2w zVjM/QMJ6hT+pEqYG+wK91NqiGkoDMWb2l5aRiCL50Di5oLL2lc8KFSR8DeWYoXwc2dV kNztdi6iUnAQ78GsnAmmW2p4nFQWGVIQN2W0rHBWSKcuw3+PcKvAErBAF00IjTgxKzz7 +L43lOpHU5RRnlotEMJqNs774QqydpD0qJ+PX0jyTAG4+P8sabwEFUPcjFJ1xhbpIey5 nSDVQqTMRMlGzq2CSO+sCr0eViyA8qFg79tc7vHfRc5oaxmwyviH9YO3cM7RTWFjq2cW fzbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731551876; x=1732156676; 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=XMJuyNBDX0tYHP8rAAgmWtAVd/DXuOJ+DvQ/23xDYJTd3KuAc8j4xUUxvuad/SzZi8 dvqtzLJtdauyz6NmaK1elx8zf+M5zJjJNltOsL43kzsge6zYOB3213O1nVnjqKQu8WM4 3mmoPc+IaZRJU6+B3zwKu0NpUzQTiWchduXhqK1FKBNlZd3/O7zIcA+G5ZNJYsJbWNk3 LWDwj7vfrlxuFT3z24SbYq6p8hpSeLcpomEYYxXafgURo31iGmSgN+13Rjp6bFnXC2HW KceKOeod6VJHhkHR6bDmIWoskMEDHaSNQDxRSEp8VrDBJYL27+EOvLnvHKg8j5ayw+zw F6nQ== X-Gm-Message-State: AOJu0YwSh5CPSxWet7Qk/D1EDof047GBDArrrguMeBxmS2eZ5CsmVuXX g/9GEiFhcS/B0ay33PAkuMz52voCdaTJHZd/Xu7yBywb/BUAwxuIbVLcjSzEjbfRKuAcIBY6Wyj X X-Google-Smtp-Source: AGHT+IEB63cZ995vNk0+M3eUgW9An6/j04AqcfUYpFfJ7BAgGVO9p10rGM6ryNDd8k7PWtoODHVe4w== X-Received: by 2002:aa7:88c8:0:b0:71e:f83:5c00 with SMTP id d2e1a72fcca58-72469c485bfmr857568b3a.2.1731551875598; Wed, 13 Nov 2024 18:37:55 -0800 (PST) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7246a5d2bb5sm150976b3a.29.2024.11.13.18.37.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Nov 2024 18:37:55 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v3 08/11] test: remove unneeded memset Date: Wed, 13 Nov 2024 18:35:57 -0800 Message-ID: <20241114023738.141821-9-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241114023738.141821-1-stephen@networkplumber.org> References: <20241114011129.451243-1-stephen@networkplumber.org> <20241114023738.141821-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