From patchwork Mon Jul 28 22:04:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gary.robertson@linaro.org X-Patchwork-Id: 34442 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f200.google.com (mail-vc0-f200.google.com [209.85.220.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 98CBC202A1 for ; Mon, 28 Jul 2014 22:29:55 +0000 (UTC) Received: by mail-vc0-f200.google.com with SMTP id hq11sf24981478vcb.11 for ; Mon, 28 Jul 2014 15:29:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:cc:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:errors-to:x-original-sender :x-original-authentication-results:mailing-list:content-type :content-transfer-encoding; bh=J7idOjhBYtMiO478NnuaYbgzLldy94hlsYtd2sjih5I=; b=epWYNJLfVHBlcbpk63lpGHBMjU703dcY8a/Z5Bro7wwByJ1w8zWAZnjpEuieIEcB1q jBX9sZaCSSuDWqa5FJiiO9c+f+JsjPbM7jGNcMapqAyIklFUxVk/LKinv8K/u4bxT+MN vdavy/cc3/A+Ro8URPZ+MyDwA6nGTuV0eHExrAx2y9vh4vjsEXhWNNO+NriySGkrTE1x sRsUgYj8D3h8Xz2wnjbX24xE5fm+VZnBS2nqqpudVMl5qJSeyPUK4Gmz0hai+/lPlUCb MwXEE8Wbwc5UYWH+5hjYUsVTlQY2CP1IrkIblBjHNi9oCbKFRCGrI/+WSoLAeidgPzqL w2bQ== X-Gm-Message-State: ALoCoQlYwyLzuvsU3R/qNurJEK3DoXC1tna7jz/P0SvSVkX5KjkfRW0Ai5CkafjMtddT81n6ZjVc X-Received: by 10.224.51.197 with SMTP id e5mr8785915qag.8.1406586595362; Mon, 28 Jul 2014 15:29:55 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.25.144 with SMTP id 16ls2153653qgt.45.gmail; Mon, 28 Jul 2014 15:29:55 -0700 (PDT) X-Received: by 10.221.56.132 with SMTP id wc4mr3890463vcb.38.1406586595239; Mon, 28 Jul 2014 15:29:55 -0700 (PDT) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id vw2si13454658vcb.54.2014.07.28.15.29.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 28 Jul 2014 15:29:55 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.169 as permitted sender) client-ip=209.85.220.169; Received: by mail-vc0-f169.google.com with SMTP id le20so3606683vcb.0 for ; Mon, 28 Jul 2014 15:29:55 -0700 (PDT) X-Received: by 10.52.244.138 with SMTP id xg10mr337119vdc.40.1406586595069; Mon, 28 Jul 2014 15:29:55 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp200533vcb; Mon, 28 Jul 2014 15:29:54 -0700 (PDT) X-Received: by 10.42.189.73 with SMTP id dd9mr224276icb.84.1406586593919; Mon, 28 Jul 2014 15:29:53 -0700 (PDT) Received: from lists.sourceforge.net (lists.sourceforge.net. [216.34.181.88]) by mx.google.com with ESMTPS id z6si44340046icc.25.2014.07.28.15.29.53 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 28 Jul 2014 15:29:53 -0700 (PDT) Received-SPF: pass (google.com: domain of ltp-list-bounces@lists.sourceforge.net designates 216.34.181.88 as permitted sender) client-ip=216.34.181.88; Received: from localhost ([127.0.0.1] helo=sfs-ml-3.v29.ch3.sourceforge.com) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1XBtQS-0005EG-AK; Mon, 28 Jul 2014 22:29:48 +0000 Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1XBtQQ-0005E9-Ef for ltp-list@lists.sourceforge.net; Mon, 28 Jul 2014 22:29:46 +0000 Received-SPF: pass (sog-mx-1.v43.ch3.sourceforge.com: domain of linaro.org designates 209.85.219.47 as permitted sender) client-ip=209.85.219.47; envelope-from=gary.robertson@linaro.org; helo=mail-oa0-f47.google.com; Received: from mail-oa0-f47.google.com ([209.85.219.47]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1XBtQO-0008L2-Q0 for ltp-list@lists.sourceforge.net; Mon, 28 Jul 2014 22:29:46 +0000 Received: by mail-oa0-f47.google.com with SMTP id g18so9555435oah.6 for ; Mon, 28 Jul 2014 15:29:39 -0700 (PDT) X-Received: by 10.182.142.69 with SMTP id ru5mr54684264obb.6.1406585066978; Mon, 28 Jul 2014 15:04:26 -0700 (PDT) Received: from honkintosh.cybertech.lan (65-120-133-114.dia.static.qwest.net. [65.120.133.114]) by mx.google.com with ESMTPSA id zd1sm41884806obb.1.2014.07.28.15.04.26 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 28 Jul 2014 15:04:26 -0700 (PDT) From: "Gary S. Robertson" To: ltp-list@lists.sourceforge.net Date: Mon, 28 Jul 2014 17:04:08 -0500 Message-Id: <1406585048-31585-1-git-send-email-gary.robertson@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Spam-Score: -1.5 (-) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain -0.0 SPF_PASS SPF: sender matches SPF record X-Headers-End: 1XBtQO-0008L2-Q0 Cc: mike.holmes@linaro.org Subject: [LTP] [PATCH] pthread_cond_many: fix uninitialized return in option handling X-BeenThere: ltp-list@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: ltp-list-bounces@lists.sourceforge.net X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: gary.robertson@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.169 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: "Gary S. Robertson" Some of the cases in the switch statement in parse_args() did not initialize the 'handled' variable which is returned by the function. Added an initialization to the definition of the variable. Signed-off-by: Gary S. Robertson --- .../realtime/perf/latency/pthread_cond_many.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testcases/realtime/perf/latency/pthread_cond_many.c b/testcases/realtime/perf/latency/pthread_cond_many.c index f9325b5..1d39100 100644 --- a/testcases/realtime/perf/latency/pthread_cond_many.c +++ b/testcases/realtime/perf/latency/pthread_cond_many.c @@ -256,7 +256,7 @@ void usage(void) int parse_args(int c, char *v) { - int handled; + int handled = 1; switch (c) { case 'h': usage();