Skip to content

Commit 6a51d0a

Browse files
authored
Merge pull request #7613 from rhc54/topic/typo
Silence Coverity warning
2 parents c581293 + 02346ee commit 6a51d0a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

opal/mca/pmix/base/pmix_base_fns.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,9 @@ int opal_pmix_convert_nspace(opal_jobid_t *jobid, pmix_nspace_t nspace)
130130
char *p = NULL;
131131

132132
/* set a default */
133-
*jobid = OPAL_JOBID_INVALID;
133+
if (NULL != jobid) {
134+
*jobid = OPAL_JOBID_INVALID;
135+
}
134136

135137
/* if the nspace is empty, there is nothing more to do */
136138
if (0 == strlen(nspace)) {

0 commit comments

Comments
 (0)