1
1

Set default values to avoid using these variables uninitialized.

This commit was SVN r22279.
Этот коммит содержится в:
George Bosilca 2009-12-08 18:42:22 +00:00
родитель 70e385bcab
Коммит 501d1cc4ad
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -173,7 +173,7 @@ error:
static int rte_finalize(void)
{
int ret;
int ret = ORTE_SUCCESS;
if (ORTE_PROC_IS_DAEMON) {
if (ORTE_SUCCESS != (ret = orte_ess_base_orted_finalize())) {

Просмотреть файл

@ -570,7 +570,7 @@ static int odls_default_fork_local_proc(orte_app_context_t* context,
}
if (orte_odls_globals.bound) {
/* if we are bound, use this as an index into our available sockets */
for (target_socket=0; target_socket < opal_bitmap_size(&orte_odls_globals.sockets) && n < logical_skt; target_socket++) {
for (target_socket=0, n = 0; target_socket < opal_bitmap_size(&orte_odls_globals.sockets) && n < logical_skt; target_socket++) {
if (opal_bitmap_is_set_bit(&orte_odls_globals.sockets, target_socket)) {
n++;
}