- Silence useless compiler warning
- Make the code conform better to the coding guidelines (I think some of this was written long before the guidelines were established...?) This commit was SVN r2357.
Этот коммит содержится в:
родитель
161bab95f0
Коммит
41592650f2
@ -367,6 +367,7 @@ char *ompi_cmd_line_get_usage_msg(ompi_cmd_line_t *cmd)
|
||||
argv = NULL;
|
||||
ret = NULL;
|
||||
line = NULL;
|
||||
temp = NULL;
|
||||
for (item = ompi_list_get_first(&cmd->lcl_options);
|
||||
ompi_list_get_end(&cmd->lcl_options) != item;
|
||||
item = ompi_list_get_next(item)) {
|
||||
@ -428,10 +429,10 @@ char *ompi_cmd_line_get_usage_msg(ompi_cmd_line_t *cmd)
|
||||
ompi_argv_append(&argc, &argv, line);
|
||||
}
|
||||
}
|
||||
if (line != NULL) {
|
||||
if (NULL != line) {
|
||||
free(line);
|
||||
}
|
||||
if (argv != NULL) {
|
||||
if (NULL != argv) {
|
||||
ret = ompi_argv_join(argv, '\n');
|
||||
ompi_argv_free(argv);
|
||||
}
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user