[svn-r7419] Purpose:

bug fix

Description:
h5diff would incur a segmentation fault in Alpha clusters when
the percentage option is used.  This was due to memory aliagment
issue when the options variable is declared as a local variable
in main().

Moved the declaration to a global declaration.

Platforms tested:
"h5committested"
And tested at cluster QT of SNL.

Misc. update:
This commit is contained in:
Albert Cheng
2003-08-27 10:29:55 -05:00
parent 88218592e6
commit 57e38d527c

View File

@@ -52,6 +52,11 @@ typedef struct options_t
int count; /* count value */
} options_t;
/* Due to alignment issue in Alpha clusters, options must be declared here
* not as a local variable in main().
*/
options_t options = {0,0,0,0,0,0,0};
/*-------------------------------------------------------------------------
* prototypes
*-------------------------------------------------------------------------
@@ -182,7 +187,6 @@ int main(int argc, const char *argv[])
int nobjects1, nobjects2;
info_t *info1=NULL;
info_t *info2=NULL;
options_t options = {0,0,0,0,0,0,0};
void *edata;
hid_t (*func)(void*);
const char *file1_name = NULL;