From patchwork Tue Feb 1 19:24:49 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 523761 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p11JOqX6004840 for ; Tue, 1 Feb 2011 19:24:52 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752259Ab1BATYv (ORCPT ); Tue, 1 Feb 2011 14:24:51 -0500 Received: from mx1.redhat.com ([209.132.183.28]:29119 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752235Ab1BATYv (ORCPT ); Tue, 1 Feb 2011 14:24:51 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id p11JOpor030814 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 1 Feb 2011 14:24:51 -0500 Received: from tlielax.poochiereds.net (vpn-11-17.rdu.redhat.com [10.11.11.17]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p11JOoMh027043 for ; Tue, 1 Feb 2011 14:24:50 -0500 From: Jeff Layton To: linux-cifs@vger.kernel.org Subject: [PATCH] mount.cifs: fix possible use of uninitialized variable Date: Tue, 1 Feb 2011 14:24:49 -0500 Message-Id: <1296588289-8485-1-git-send-email-jlayton@samba.org> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 01 Feb 2011 19:24:52 +0000 (UTC) diff --git a/mount.cifs.c b/mount.cifs.c index 5f29761..3a2b539 100644 --- a/mount.cifs.c +++ b/mount.cifs.c @@ -636,7 +636,7 @@ parsing_err: static int open_cred_file(char *file_name, struct parsed_mount_info *parsed_info) { - char *line_buf; + char *line_buf = NULL; char *temp_val = NULL; FILE *fs = NULL; int i;