From patchwork Tue Nov 17 11:40:58 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sakari Ailus X-Patchwork-Id: 7635661 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1A49A9F2EC for ; Tue, 17 Nov 2015 11:41:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 67820204D9 for ; Tue, 17 Nov 2015 11:41:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2DE5C20431 for ; Tue, 17 Nov 2015 11:41:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752552AbbKQLlt (ORCPT ); Tue, 17 Nov 2015 06:41:49 -0500 Received: from mga11.intel.com ([192.55.52.93]:58733 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751103AbbKQLlt (ORCPT ); Tue, 17 Nov 2015 06:41:49 -0500 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 17 Nov 2015 03:41:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,307,1444719600"; d="scan'208";a="852844778" Received: from paasikivi.fi.intel.com ([10.237.72.42]) by fmsmga002.fm.intel.com with ESMTP; 17 Nov 2015 03:41:48 -0800 Received: from nauris.fi.intel.com (nauris.localdomain [192.168.240.2]) by paasikivi.fi.intel.com (Postfix) with ESMTP id D1C90202AC; Tue, 17 Nov 2015 13:41:46 +0200 (EET) Received: by nauris.fi.intel.com (Postfix, from userid 1000) id D09A120230; Tue, 17 Nov 2015 13:40:58 +0200 (EET) From: Sakari Ailus To: linux-media@vger.kernel.org Cc: hverkuil@xs4all.nl, laurent.pinchart@ideasonboard.com Subject: [v4l-utils 1/1] media-ctl: Fix bad long option crash Date: Tue, 17 Nov 2015 13:40:58 +0200 Message-Id: <1447760458-8327-1-git-send-email-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.1.0.231.g7484e3b Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The long options array has to be followed by an all-zero entry. There was none. Signed-off-by: Sakari Ailus Acked-by: Laurent Pinchart --- utils/media-ctl/options.c | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/media-ctl/options.c b/utils/media-ctl/options.c index ffaffcd..2751e6e 100644 --- a/utils/media-ctl/options.c +++ b/utils/media-ctl/options.c @@ -97,6 +97,7 @@ static struct option opts[] = { {"print-topology", 0, 0, 'p'}, {"reset", 0, 0, 'r'}, {"verbose", 0, 0, 'v'}, + { }, }; int parse_cmdline(int argc, char **argv)