Skip to content

Commit f0c9173

Browse files
Update sorting/merge_sort.c
Co-authored-by: Sharon "Cass" Cassidy <[email protected]>
1 parent bde81dd commit f0c9173

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sorting/merge_sort.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void merge(int *a, int l, int r, int n)
3636
if (b == NULL) /* return to main if can't malloc memory */
3737
{
3838
printf("Can't Malloc! Please try again.");
39-
exit(1);
39+
exit(EXIT_FAILURE);
4040
}
4141
int c = l;
4242
int p1, p2;

0 commit comments

Comments
 (0)