diff options
Diffstat (limited to 'src/backend/commands/define.c')
-rw-r--r-- | src/backend/commands/define.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/backend/commands/define.c b/src/backend/commands/define.c index 89ac127420..fe696b8efd 100644 --- a/src/backend/commands/define.c +++ b/src/backend/commands/define.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/define.c,v 1.6 1996/11/06 08:21:34 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/define.c,v 1.7 1996/11/08 05:55:49 momjian Exp $ * * DESCRIPTION * The "DefineFoo" routines take the parse tree and pick out the @@ -136,8 +136,9 @@ compute_full_attributes(const List *parameters, int32 *byte_pct_p, */ *byte_pct_p = atoi(param->val); } else if (strcasecmp(param->name, "perbyte_cpu") == 0) { + count = 0; if (sscanf(param->val, "%d", perbyte_cpu_p) == 0) { - for (count = 0, ptr = param->val; *ptr != '\0'; ptr++) + for (ptr = param->val; *ptr != '\0'; ptr++) if (*ptr == '!') count++; } *perbyte_cpu_p = (int) pow(10.0, (double) count); |