ccf3a393c7
Copy from home:a_jaeger:branches:openSUSE:Factory/ocfs2-tools via accept of submit request 37469 revision 3. Request was accepted with message: Reviewed ok OBS-URL: https://build.opensuse.org/request/show/37469 OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/ocfs2-tools?expand=0&rev=5
22 lines
757 B
Diff
22 lines
757 B
Diff
Index: mount.ocfs2/mount.ocfs2.c
|
|
===================================================================
|
|
--- mount.ocfs2/mount.ocfs2.c.orig
|
|
+++ mount.ocfs2/mount.ocfs2.c
|
|
@@ -261,7 +261,7 @@ int main(int argc, char **argv)
|
|
char *extra = NULL;
|
|
int dev_ro = 0;
|
|
char *hbstr = NULL;
|
|
- char stackstr[strlen(OCFS2_CLUSTER_STACK_ARG) + OCFS2_STACK_LABEL_LEN + 1] = "";
|
|
+ char stackstr[strlen(OCFS2_CLUSTER_STACK_ARG) + OCFS2_STACK_LABEL_LEN + 1];
|
|
ocfs2_filesys *fs = NULL;
|
|
struct o2cb_cluster_desc cluster;
|
|
struct o2cb_region_desc desc;
|
|
@@ -269,6 +269,7 @@ int main(int argc, char **argv)
|
|
int hb_started = 0;
|
|
struct stat statbuf;
|
|
|
|
+ stackstr[0] = '\0';
|
|
initialize_ocfs_error_table();
|
|
initialize_o2dl_error_table();
|
|
initialize_o2cb_error_table();
|