File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -39,8 +39,8 @@ void check_connector_env(e3sm_io_config *cfg) {
39
39
cfg -> env_log_passthru = 1 ;
40
40
41
41
env_str = getenv ("HDF5_VOL_CONNECTOR" );
42
- if (env_str == NULL )
43
- /* env HDF5_VOL_CONNECTOR is not set */
42
+ if (env_str == NULL || env_str [ 0 ] == '\0' )
43
+ /* env HDF5_VOL_CONNECTOR is not set or set with ni value */
44
44
return ;
45
45
46
46
if (strstr (env_str , "under_vol=512" ) != NULL || strstr (env_str , "async " ) != NULL )
@@ -50,6 +50,8 @@ void check_connector_env(e3sm_io_config *cfg) {
50
50
51
51
env_str = strdup (env_str );
52
52
char * connector = strtok (env_str , " \t\n\r" );
53
+ if (connector == NULL ) return ;
54
+
53
55
if (strcmp (connector , "LOG" ) == 0 ) {
54
56
/* if LOG is set in HDF5_VOL_CONNECTOR */
55
57
cfg -> env_log = 1 ;
Original file line number Diff line number Diff line change @@ -137,6 +137,7 @@ for API in "${APIS[@]}" ; do
137
137
CMD=" ${RUN} ${EXEC} -k -a ${ap[0]} -r 2 -x ${ap[1]} -y 2 -o ${OUT_FILE} ${IN_FILE} "
138
138
echo " CMD = ${CMD} "
139
139
${CMD}
140
+
140
141
# run read operations (currently support pnetcdf, netcdf4 and canonical only)
141
142
# Disable read for netcdf4 as it is extremely slow.
142
143
if test " x${ap[1]} " = xcanonical && test " x${ap[0]} " == xpnetcdf ; then
You can’t perform that action at this time.
0 commit comments