Skip to content

Commit 919d8a7

Browse files
committed
Check that return value of PDC_Client_init in PDC_init
1 parent 4b335f3 commit 919d8a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/api/pdc.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ PDCinit(const char *pdc_name)
108108
PGOTO_ERROR(FAIL, "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(FAIL, "PDC client init error");
112113
#ifdef PDC_TIMING
113114
PDC_timing_init();
114115
#endif

0 commit comments

Comments
 (0)