1
1

- Coverity issues 939, 940, 941:

Event uninit_use_in_call: Using uninitialized value "tag" in call to
   function "(ompi_dpm).connect_accept" and others
   The tag is set and used in get_rport only on root...

This commit was SVN r17972.
Этот коммит содержится в:
Rainer Keller 2008-03-26 08:09:11 +00:00
родитель 4a5431ef11
Коммит 56f3d59f2a
3 изменённых файлов: 3 добавлений и 3 удалений

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

@ -42,7 +42,7 @@ int MPI_Comm_accept(char *port_name, MPI_Info info, int root,
bool send_first=false; /* we receive first */
ompi_communicator_t *newcomp=MPI_COMM_NULL;
char *tmp_port=NULL;
orte_rml_tag_t tag;
orte_rml_tag_t tag = 0; /* tag is set & used in get_rport only at root; silence coverity */
MEMCHECKER(
memchecker_comm(comm);

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

@ -47,7 +47,7 @@ int MPI_Comm_connect(char *port_name, MPI_Info info, int root,
ompi_communicator_t *newcomp=MPI_COMM_NULL;
orte_process_name_t port_proc_name;
char *tmp_port=NULL;
orte_rml_tag_t tag;
orte_rml_tag_t tag = 0; /* tag is set & used in get_rport only at root; silence coverity */
MEMCHECKER(
memchecker_comm(comm);

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

@ -45,7 +45,7 @@ int MPI_Comm_spawn(char *command, char **argv, int maxprocs, MPI_Info info,
ompi_communicator_t *newcomp=NULL;
char port_name[MPI_MAX_PORT_NAME];
char *tmp_port;
orte_rml_tag_t tag;
orte_rml_tag_t tag = 0; /* tag is set & used in get_rport only at root; silence coverity */
bool non_mpi = false;
MEMCHECKER(