Compare commits
1 Commits
8868b79617
...
0f9157bd3a
| Author | SHA1 | Date | |
|---|---|---|---|
|
0f9157bd3a
|
@@ -444,7 +444,7 @@ _flatfile_init(ProfAccount* account)
|
||||
g_hash_table_destroy(g_contact_states);
|
||||
}
|
||||
g_contact_states = g_hash_table_new_full(g_str_hash, g_str_equal,
|
||||
g_free, (GDestroyNotify)ff_state_free);
|
||||
g_free, (GDestroyNotify)ff_state_free);
|
||||
|
||||
log_info("Initialized flat-file database backend: %s", base_dir);
|
||||
return TRUE;
|
||||
|
||||
@@ -372,7 +372,8 @@ ff_readline(FILE* fp, gboolean* truncated)
|
||||
// Return empty string so caller's loop continues (parse will reject it).
|
||||
// Use malloc() so callers can always use free() consistently.
|
||||
char* empty = malloc(1);
|
||||
if (empty) empty[0] = '\0';
|
||||
if (empty)
|
||||
empty[0] = '\0';
|
||||
return empty;
|
||||
}
|
||||
if (truncated)
|
||||
|
||||
Reference in New Issue
Block a user