Fix: wrong number of elements in array for loop
authorDavid Goulet <dgoulet@efficios.com>
Wed, 12 Mar 2014 18:07:12 +0000 (14:07 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Wed, 12 Mar 2014 18:07:12 +0000 (14:07 -0400)
Fixes coverity issue 1191759.

Signed-off-by: David Goulet <dgoulet@efficios.com>
src/common/config/config.c

index 4eaa274e82ce9e24d7f06d29c0c73ba8a80793d4..1a32b0b5f0281c03d5e870797ab937c0a356ed8f 100644 (file)
@@ -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;
This page took 0.028078 seconds and 4 git commands to generate.