grep: fix erroneously copy/pasted variable in check/assert pattern
[gitweb.git] / builtin / pack-objects.c
index 0fe35d1b5aebd74116d66d5414bdabf19baf7d97..f1baf05dfe31dc9bbb91c1b6ff44c123fa1b3d38 100644 (file)
@@ -2472,8 +2472,10 @@ static int git_pack_config(const char *k, const char *v, void *cb)
                        die("invalid number of threads specified (%d)",
                            delta_search_threads);
 #ifdef NO_PTHREADS
-               if (delta_search_threads != 1)
+               if (delta_search_threads != 1) {
                        warning("no threads support, ignoring %s", k);
+                       delta_search_threads = 0;
+               }
 #endif
                return 0;
        }