hdf5: force some hdf5 lib functions, force no depreacated functions, convert code...
[scilab.git] / scilab / modules / hdf5 / sci_gateway / cpp / sci_import_from_hdf5.cpp
index 9470c0a..4ebab38 100644 (file)
@@ -186,7 +186,7 @@ int sci_import_from_hdf5(char *fname, unsigned long fname_len)
 static bool import_variable(int _iFile, char* _pstVarName)
 {
     int iDataSetId = getDataSetIdFromName(_iFile, _pstVarName);
-    if (iDataSetId == 0)
+    if (iDataSetId <= 0)
     {
         return false;
     }