From 16edc813e901c509ec2bdaca1047a9e98bd9b35e Mon Sep 17 00:00:00 2001 From: Tim Woodall Date: Thu, 19 May 2005 19:15:41 +0000 Subject: [PATCH] init entire struct - as some fields (path) are not filled in This commit was SVN r5774. --- src/util/universe_setup_file_io.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/util/universe_setup_file_io.c b/src/util/universe_setup_file_io.c index 0c1ae1393b..92ab51e603 100644 --- a/src/util/universe_setup_file_io.c +++ b/src/util/universe_setup_file_io.c @@ -111,6 +111,10 @@ int orte_read_universe_setup_file(char *filename, orte_universe_t *info) } } + /* initialize info */ + memset(info, 0, sizeof(orte_universe_t)); + + /* fill in universe info */ info->name = orte_getline(fp); if (NULL == info->name) { goto CLEANUP;