Skip to content

Commit

Permalink
table2
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisHeimbigner committed Sep 8, 2024
1 parent a76e2cc commit 3040d24
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion libhdf5/hdf5plugins.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ static const NC_PluginPathDispatch pluginpathtable = {
NC4_hdf5_plugin_path_write
};

const NC_PluginPathDispatch* NC4_hdf5_pluginpathtable = &pluginpathtable;
const NC_PluginPathDispatch* NC4_hdf5_pluginpathtable = NULL;

/**************************************************/

Expand All @@ -67,6 +67,9 @@ NC4_hdf5_plugin_path_initialize(void** statep, const NClist* initialpaths)

assert(statep != NULL);
if(*statep != NULL) goto done; /* already initialized */

NC4_hdf5_pluginpathtable = &pluginpathtable;

if((g5 = (GlobalHDF5*)calloc(1,sizeof(GlobalHDF5)))==NULL) {stat = NC_ENOMEM; goto done;}
*statep = (void*)g5; g5 = NULL;
done:
Expand Down
4 changes: 3 additions & 1 deletion libnczarr/zplugins.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ static const NC_PluginPathDispatch pluginpathtable = {
NCZ_plugin_path_write,
};

const NC_PluginPathDispatch* NCZ_pluginpathtable = &pluginpathtable;
const NC_PluginPathDispatch* NCZ_pluginpathtable = NULL;

/**************************************************/
/**
Expand All @@ -86,6 +86,8 @@ NCZ_plugin_path_initialize(void** statep, const NClist* initialpaths)
assert(statep != NULL);
if(*statep != NULL) goto done; /* already initialized */

NCZ_pluginpathtable = &pluginpathtable;

if((gz = (GlobalNCZarr*)calloc(1,sizeof(GlobalNCZarr)))==NULL) {stat = NC_ENOMEM; goto done;}

gz->pluginpaths = nclistnew();
Expand Down

0 comments on commit 3040d24

Please sign in to comment.