Skip to content
Snippets Groups Projects
Commit ef80445b authored by David Bigagli's avatar David Bigagli
Browse files

Dont print a NULL pointer.

parent 44d3582d
No related branches found
No related tags found
No related merge requests found
...@@ -378,7 +378,8 @@ int PMI2_Initialized(void) ...@@ -378,7 +378,8 @@ int PMI2_Initialized(void)
int PMI2_Abort(int flag, const char msg[]) int PMI2_Abort(int flag, const char msg[])
{ {
PMI2U_printf("aborting job:\n%s", msg); if (mpi)
PMI2U_printf("aborting job:\n%s", msg);
/* ignoring return code, because we're exiting anyway */ /* ignoring return code, because we're exiting anyway */
PMIi_WriteSimpleCommandStr(PMI2_fd, NULL, ABORT_CMD, ISWORLD_KEY, flag ? TRUE_VAL : FALSE_VAL, MSG_KEY, ((msg == NULL) ? "(null)": msg), NULL); PMIi_WriteSimpleCommandStr(PMI2_fd, NULL, ABORT_CMD, ISWORLD_KEY, flag ? TRUE_VAL : FALSE_VAL, MSG_KEY, ((msg == NULL) ? "(null)": msg), NULL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment