Skip to content

Commit 1bf3798

Browse files
tuedajodavies
authored andcommitted
fix(parform): handle return value from PF_LibInit()
1 parent a595e4f commit 1bf3798

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sources/parallel.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1971,7 +1971,8 @@ int PF_Init(int *argc, char ***argv)
19711971
PF.numsbufs = 2; /* might be changed by the environment variable on the master ! */
19721972
PF.numrbufs = 2; /* might be changed by the environment variable on the master ! */
19731973

1974-
PF_LibInit(argc,argv);
1974+
int ret = PF_LibInit(argc,argv);
1975+
if (ret) { return ret; }
19751976
PF_RealTime(PF_RESET);
19761977

19771978
PF.log = 0;

0 commit comments

Comments
 (0)