]> mj.ucw.cz Git - libucw.git/commitdiff
SORT_DELETE_INPUT works even with SORT_INPUT_FB.
authorMartin Mares <mj@ucw.cz>
Fri, 16 Feb 2001 20:16:51 +0000 (20:16 +0000)
committerMartin Mares <mj@ucw.cz>
Fri, 16 Feb 2001 20:16:51 +0000 (20:16 +0000)
lib/sorter.h

index be2e80a33b12dade3daffafc9683626998d7b5c0..692b666bcf9c413e6ff465c4c3263b69e2f73d8d 100644 (file)
@@ -372,14 +372,14 @@ struct fastbuf *fb1, struct fastbuf *fb2
 #ifdef SORT_INPUT_FILE
   struct fastbuf *fb1, *fb2;
   fb1 = bopen(inname, O_RDONLY, sorter_stream_bufsize);
-#ifdef SORT_DELETE_INPUT
-  fb1->is_temp_file = SORT_DELETE_INPUT;
-#endif
   fb2 = NULL;
 #elif defined(SORT_INPUT_FB)
   struct fastbuf *fb2 = NULL;
 #endif
 
+#ifdef SORT_DELETE_INPUT
+  fb1->is_temp_file = SORT_DELETE_INPUT;
+#endif
   sorter_pass_counter = 1;
 #ifdef SORT_PRESORT
   P(presort)(&fb1, &fb2);