diff mbox

mount.cifs: fix possible use of uninitialized variable

Message ID 1296588289-8485-1-git-send-email-jlayton@samba.org (mailing list archive)
State New, archived
Headers show

Commit Message

Jeff Layton Feb. 1, 2011, 7:24 p.m. UTC
None
diff mbox

Patch

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;