app/regex: avoid division by zero
authorThierry Herbelot <thierry.herbelot@6wind.com>
Mon, 24 May 2021 08:57:00 +0000 (10:57 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 5 Jul 2022 20:03:39 +0000 (22:03 +0200)
commit1afdf9edc8f7122cdaf8dae78e29fe8642c21484
tree515dbbaf94064144a06cb586c59bb5b76b8ed66a
parent834d99f388ca99507b124d1fb49059c265dfa18e
app/regex: avoid division by zero

Check that nb_jobs is not zero before using it for a division.

Fixes: f5cffb7eb7fb6 ("app/regex: read data file once at startup")
Cc: stable@dpdk.org
Signed-off-by: Thierry Herbelot <thierry.herbelot@6wind.com>
app/test-regex/main.c