This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
APItest.xs: Omit unused variable
[perl5.git] / pp_sort.c
index 6049509..9d31bda 100644 (file)
--- a/pp_sort.c
+++ b/pp_sort.c
@@ -558,7 +558,7 @@ S_mergesortsv(pTHX_ gptr *base, size_t nmemb, SVCOMPARE_t cmp, U32 flags)
     }
   done:
     if (aux != small) Safefree(aux);   /* free iff allocated */
-    if (flags) {
+    if (savecmp != NULL) {
         PL_sort_RealCmp = savecmp;     /* Restore current comparison routine, if any */
     }
     return;