From: David Goulet Date: Wed, 12 Mar 2014 18:07:12 +0000 (-0400) Subject: Fix: wrong number of elements in array for loop X-Git-Tag: v2.5.0-rc1~114 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=301423df3f200caebed2169514560170ae00dd3a;p=lttng-tools.git Fix: wrong number of elements in array for loop Fixes coverity issue 1191759. Signed-off-by: David Goulet --- diff --git a/src/common/config/config.c b/src/common/config/config.c index 4eaa274e8..1a32b0b5f 100644 --- a/src/common/config/config.c +++ b/src/common/config/config.c @@ -1238,7 +1238,7 @@ int create_session(const char *name, goto end; } - for (i = 0; i < (sizeof(domains) / sizeof(*domain)); i++) { + for (i = 0; i < (sizeof(domains) / sizeof(domains[0])); i++) { domain = domains[i]; if (!domain) { continue;