More name info issues.
This commit is contained in:
parent
69fccd56d3
commit
47838d5e48
@ -430,19 +430,19 @@ static void _tf_ssb_getIdentityInfo_work(tf_ssb_t* ssb, void* user_data)
|
|||||||
{
|
{
|
||||||
int r = SQLITE_OK;
|
int r = SQLITE_OK;
|
||||||
while ((r = sqlite3_step(statement)) == SQLITE_ROW)
|
while ((r = sqlite3_step(statement)) == SQLITE_ROW)
|
||||||
{
|
|
||||||
for (int i = 0; i < request->count; i++)
|
|
||||||
{
|
{
|
||||||
const char* identity = (const char*)sqlite3_column_text(statement, 0);
|
const char* identity = (const char*)sqlite3_column_text(statement, 0);
|
||||||
const char* name = (const char*)sqlite3_column_text(statement, 1);
|
const char* name = (const char*)sqlite3_column_text(statement, 1);
|
||||||
if (strcmp(request->identities[i], identity) == 0 && !request->names[i])
|
for (int i = 0; i < request->count; i++)
|
||||||
|
{
|
||||||
|
if (!request->names[i] && strcmp(request->identities[i], identity) == 0)
|
||||||
{
|
{
|
||||||
request->names[i] = tf_strdup(name);
|
request->names[i] = tf_strdup(name);
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
sqlite3_finalize(statement);
|
sqlite3_finalize(statement);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user