Commit 47f18dc
committed
ofi: Fix Coverity warnings
Fix two coverity warnings:
- Uninitialized variables (UNINIT) in /opal/mca/common/ofi/common_ofi.c: 859 in opal_common_ofi_select_provider()
- Null pointer dereferences (FORWARD_NULL) /opal/mca/common/ofi/common_ofi.c: 636 in is_near()
Move the "near" parameter in opal_common_ofi_select_provider() outside
the #if OPAL_OFI_PCI_DATA_AVAILABLE block, because later in the code
it's being used outside of it.
Signed-off-by: Amir Shehata <shehataa@ornl.gov>1 parent 37f1f82 commit 47f18dc
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
651 | 651 | | |
652 | 652 | | |
653 | 653 | | |
654 | | - | |
| 654 | + | |
655 | 655 | | |
656 | | - | |
| 656 | + | |
657 | 657 | | |
658 | 658 | | |
659 | 659 | | |
| |||
789 | 789 | | |
790 | 790 | | |
791 | 791 | | |
792 | | - | |
| 792 | + | |
793 | 793 | | |
794 | 794 | | |
795 | 795 | | |
| |||
0 commit comments