diff options
author | Luca Deri <deri@ntop.org> | 2024-01-27 20:45:52 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2024-01-27 20:45:52 +0100 |
commit | 7a7df2b7d79bf156b7c0963a6ff360f12c56cffd (patch) | |
tree | a3c2992bb7e9efd17520147afdfa28f9ca442c29 | |
parent | 65b9c68d7d92f615e2df5df0bb687dd7cfd7ac56 (diff) |
Fixed warning
-rw-r--r-- | src/lib/ndpi_domains.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/ndpi_domains.c b/src/lib/ndpi_domains.c index e7b283e54..e679c3fc0 100644 --- a/src/lib/ndpi_domains.c +++ b/src/lib/ndpi_domains.c @@ -76,7 +76,9 @@ int ndpi_load_domain_suffixes(struct ndpi_detection_module_struct *ndpi_str, NDPI_LOG_ERR(ndpi_str, "Error while finalizing domain processing\n"); } - NDPI_LOG_DBG(ndpi_str, "Loaded %u domains\n", num_domains); + if(num_domains > 0) { + NDPI_LOG_DBG(ndpi_str, "Loaded %u domains\n", num_domains); + } return(0); } |