Skip to content

Commit 3cc8412

Browse files
Check the return value of PDC_Client_init in PDC_init (#230)
* Check that return value of PDC_Client_init in PDC_init * Change return to 0 This will make is simpler when merging #233 (comment) --------- Co-authored-by: Jean Luca Bez <[email protected]>
1 parent 0a503cc commit 3cc8412

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/api/pdc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ PDCinit(const char *pdc_name)
108108
PGOTO_ERROR(0, "PDC region transfer init error");
109109

110110
// PDC Client Server connection init
111-
PDC_Client_init();
111+
if (PDC_Client_init() < 0)
112+
PGOTO_ERROR(0, "PDC client init error");
112113
#ifdef PDC_TIMING
113114
PDC_timing_init();
114115
#endif

0 commit comments

Comments
 (0)