Initialise the variable before usage.

This commit is contained in:
David Carlier 2018-06-17 07:28:37 +01:00 committed by radare
parent 8d92f4045d
commit 51175e54d7
1 changed files with 1 additions and 1 deletions

View File

@ -311,9 +311,9 @@ R_API char *r_type_format(Sdb *TDB, const char *t) {
} else if (!strcmp (kind, "struct") || !strcmp (kind, "union")) {
// assumes var list is sorted by offset.. should do more checks here
for (n = 0; (p = sdb_array_get (TDB, var, n, NULL)); n++) {
const char *tfmt;
char *type;
char *struct_name;
const char *tfmt = NULL;
bool isStruct = false;
bool isEnum = false;
bool isfp = false;