[LIB]: Move variable to inside only scope that uses it

Signed-off-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
This commit is contained in:
Arnaldo Carvalho de Melo 2007-04-28 09:07:35 -03:00
parent ddc45f12be
commit 55dd0a7efa
1 changed files with 2 additions and 1 deletions

View File

@ -1145,12 +1145,13 @@ static size_t type__fprintf(struct tag *type, const char *name,
char tbf[128];
struct type *ctype;
size_t printed = 0;
int typedef_expanded = 0;
if (type == NULL)
goto out_type_not_found;
if (expand_types) {
int typedef_expanded = 0;
while (type->tag == DW_TAG_typedef) {
ctype = tag__type(type);
if (typedef_expanded)