[svn-r21996] Add tools_init to main

This commit is contained in:
Allen Byrne 2012-02-27 15:26:55 -05:00
parent 9ae8cffe92
commit fc48c675e1
3 changed files with 9 additions and 0 deletions

View File

@ -49,6 +49,9 @@ main(int argv , char *argc[])
GifMemoryStruct.GifApplicationExtension = NULL;
GifMemoryStruct.GifCommentExtension = NULL;
/* Initialize h5tools lib */
h5tools_init();
if ( argc[1] && (strcmp("-V",argc[1])==0) )
{
print_version("gif2h5");

View File

@ -70,6 +70,9 @@ int main(int argc , char **argv)
char *image_name = NULL;
int idx;
/* Initialize h5tools lib */
h5tools_init();
if ( argv[1] && (strcmp("-V",argv[1])==0) )
{
print_version("gif2h5");

View File

@ -574,6 +574,9 @@ main(int argc, char **argv)
prog = argv[0];
/* Initialize h5tools lib */
h5tools_init();
while ((opt = get_option(argc, (const char **)argv, s_opts, l_opts)) > 0) {
switch ((char)opt) {
case '0': case '1': case '2':