From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:46083) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHzYT-0007qr-LD for qemu-devel@nongnu.org; Sun, 23 Oct 2011 11:01:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RHzYP-0001bd-MC for qemu-devel@nongnu.org; Sun, 23 Oct 2011 11:01:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:19342) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHzYP-0001bQ-AH for qemu-devel@nongnu.org; Sun, 23 Oct 2011 11:01:37 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p9NF1ZXL017322 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 23 Oct 2011 11:01:36 -0400 Received: from bow.tlv.redhat.com (dhcp-3-73.tlv.redhat.com [10.35.3.73]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p9NF1XrH003143 for ; Sun, 23 Oct 2011 11:01:35 -0400 From: Alon Levy Date: Sun, 23 Oct 2011 16:58:51 +0200 Message-Id: <1319381932-22901-2-git-send-email-alevy@redhat.com> In-Reply-To: <1319381932-22901-1-git-send-email-alevy@redhat.com> References: <1319381932-22901-1-git-send-email-alevy@redhat.com> Subject: [Qemu-devel] [PATCH 1/2] libcacard/cac: fix typo in cac_delete_pki_applet_private List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Signed-off-by: Alon Levy --- libcacard/cac.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/libcacard/cac.c b/libcacard/cac.c index f4b0b1b..927a4ca 100644 --- a/libcacard/cac.c +++ b/libcacard/cac.c @@ -266,7 +266,8 @@ static void cac_delete_pki_applet_private(VCardAppletPrivate *applet_private) { CACPKIAppletData *pki_applet_data = NULL; - if (pki_applet_data == NULL) { + + if (applet_private == NULL) { return; } pki_applet_data = &(applet_private->u.pki_data); -- 1.7.6.4