[mpich-commits] [mpich] MPICH primary repository branch, master, updated. v3.1-41-g5477bbd

Service Account noreply at mpich.org
Thu Mar 13 08:44:17 CDT 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "MPICH primary repository".

The branch, master has been updated
       via  5477bbdcae1101334d78e12cbde1ac295c83811d (commit)
      from  f74856274204607a44a17db21290e6066822ec2c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.mpich.org/mpich.git/commitdiff/5477bbdcae1101334d78e12cbde1ac295c83811d

commit 5477bbdcae1101334d78e12cbde1ac295c83811d
Author: Rob Latham <robl at mcs.anl.gov>
Date:   Tue Mar 11 15:09:14 2014 -0500

    better error handling for NULL filename
    
    In the unlikley event that someone checks error codes, let them know
    they might want to pass a non-null filename to MPI-IO
    
    Signed-off-by: Wesley Bland <wbland at mcs.anl.gov>

diff --git a/src/mpi/romio/adio/common/ad_fstype.c b/src/mpi/romio/adio/common/ad_fstype.c
index 12fe676..ca97129 100644
--- a/src/mpi/romio/adio/common/ad_fstype.c
+++ b/src/mpi/romio/adio/common/ad_fstype.c
@@ -649,6 +649,10 @@ void ADIO_ResolveFileType(MPI_Comm comm, const char *filename, int *fstype,
     static char myname[] = "ADIO_RESOLVEFILETYPE";
 
     file_system = -1;
+    if (filename == NULL) {
+	    *error_code = ADIOI_Err_create_code(myname, filename, ENOENT);
+	    return;
+    }
     tmp = strchr(filename, ':');
     if (!tmp) {
 	int have_nfs_enabled=0;

-----------------------------------------------------------------------

Summary of changes:
 src/mpi/romio/adio/common/ad_fstype.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
MPICH primary repository


More information about the commits mailing list