]>
Commit | Line | Data |
---|---|---|
f6cc6b8e PS |
1 | --- ocfs2-tools-1.4.4/mount.ocfs2/mount.ocfs2.c.orig 2009-04-14 00:10:40.000000000 +0200 |
2 | +++ ocfs2-tools-1.4.4/mount.ocfs2/mount.ocfs2.c 2010-07-27 19:03:39.454928969 +0200 | |
3 | @@ -261,7 +261,7 @@ | |
4 | char *extra = NULL; | |
5 | int dev_ro = 0; | |
6 | char *hbstr = NULL; | |
7 | - char stackstr[strlen(OCFS2_CLUSTER_STACK_ARG) + OCFS2_STACK_LABEL_LEN + 1] = ""; | |
8 | + char stackstr[strlen(OCFS2_CLUSTER_STACK_ARG) + OCFS2_STACK_LABEL_LEN + 1]; | |
9 | ocfs2_filesys *fs = NULL; | |
10 | struct o2cb_cluster_desc cluster; | |
11 | struct o2cb_region_desc desc; | |
12 | @@ -269,6 +269,7 @@ | |
13 | int hb_started = 0; | |
14 | struct stat statbuf; | |
15 | ||
16 | + memset(stackstr, 0, sizeof(stackstr)); | |
17 | initialize_ocfs_error_table(); | |
18 | initialize_o2dl_error_table(); | |
19 | initialize_o2cb_error_table(); |