Skip to content

Commit 399cb4c

Browse files
authored
Fix misplaced endif in apprentice_sort() (#18686)
1 parent 8b4edf0 commit 399cb4c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/fileinfo/libmagic.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,8 @@ diff -u libmagic.orig/apprentice.c libmagic/apprentice.c
328328
@@ -1151,6 +1075,7 @@
329329
file_mdump(ma->mp);
330330
file_mdump(mb->mp);
331-
return 0;
332331
+#endif
332+
return 0;
333333
}
334334
return x > 0 ? -1 : 1;
335335
}

ext/fileinfo/libmagic/apprentice.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1074,8 +1074,8 @@ apprentice_sort(const void *a, const void *b)
10741074
ma->mp->desc);
10751075
file_mdump(ma->mp);
10761076
file_mdump(mb->mp);
1077-
return 0;
10781077
#endif
1078+
return 0;
10791079
}
10801080
return x > 0 ? -1 : 1;
10811081
}

0 commit comments

Comments
 (0)