Skip to content

Commit 611e4f6

Browse files
Set nbWorkers to 0 when no multithread
1 parent 2a8502e commit 611e4f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

programs/zstdcli.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1317,7 +1317,8 @@ int main(int argCount, const char* argv[])
13171317
}
13181318
DISPLAYLEVEL(4, "Compressing with %u worker threads \n", nbWorkers);
13191319
#else
1320-
(void)singleThread; (void)nbWorkers; (void)defaultLogicalCores;
1320+
nbWorkers = 0;
1321+
(void)singleThread; (void)defaultLogicalCores;
13211322
#endif
13221323

13231324
g_utilDisplayLevel = g_displayLevel;

0 commit comments

Comments
 (0)