From 657d2cf77bdd93a5b1fe1fd36e25f610041422d1 Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Tue, 24 Feb 2015 13:24:59 -0500 Subject: [PATCH] io_ompi: check the correct returned value This was CID 731273 --- ompi/mca/io/ompio/io_ompio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ompi/mca/io/ompio/io_ompio.c b/ompi/mca/io/ompio/io_ompio.c index 6258820f29..76158dfa08 100644 --- a/ompi/mca/io/ompio/io_ompio.c +++ b/ompi/mca/io/ompio/io_ompio.c @@ -11,7 +11,7 @@ * Copyright (c) 2004-2005 The Regents of the University of California. * All rights reserved. * Copyright (c) 2008-2014 University of Houston. All rights reserved. - * Copyright (c) 2011 Cisco Systems, Inc. All rights reserved. + * Copyright (c) 2011-2015 Cisco Systems, Inc. All rights reserved. * Copyright (c) 2012-2013 Inria. All rights reserved. * $COPYRIGHT$ * @@ -338,7 +338,7 @@ int ompi_io_ompio_generate_current_file_view (struct mca_io_ompio_file_t *fh, sorted = (int *) malloc (tot_entries * sizeof(int)); - if (NULL == all_process){ + if (NULL == sorted){ opal_output(1,"Error while allocating per process!\n"); return OMPI_ERR_OUT_OF_RESOURCE; }