[SCM] Gerris Flow Solver branch, upstream, updated. b3aa46814a06c9cb2912790b23916ffb44f1f203

Stephane Popinet popinet at users.sf.net
Fri May 15 02:53:19 UTC 2009


The following commit has been merged in the upstream branch:
commit c5f48bd70a2350d649608258497ad7fb2935b565
Author: Stephane Popinet <popinet at users.sf.net>
Date:   Sun Aug 13 18:15:12 2006 +1000

    Bug fix for error handling in gfs_domain_read()
    
    darcs-hash:20060813081512-d4795-4ab98e2bf9e105e690cc7bb3d4edc25da7a0dfb4.gz

diff --git a/src/domain.c b/src/domain.c
index 1320696..961481c 100644
--- a/src/domain.c
+++ b/src/domain.c
@@ -1637,6 +1637,10 @@ GfsDomain * gfs_domain_read (GtsFile * fp)
     return NULL;
 
   (* GFS_DOMAIN_CLASS (GTS_OBJECT (domain)->klass)->post_read) (domain, fp);
+  if (fp->type == GTS_ERROR) {
+    gts_object_destroy (GTS_OBJECT (domain));
+    return NULL;
+  }
 
   return domain;
 }

-- 
Gerris Flow Solver



More information about the debian-science-commits mailing list