diff options
Diffstat (limited to 'src/gnunet_chat_context.c')
-rw-r--r-- | src/gnunet_chat_context.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gnunet_chat_context.c b/src/gnunet_chat_context.c index caca1f0..06f9c88 100644 --- a/src/gnunet_chat_context.c +++ b/src/gnunet_chat_context.c | |||
@@ -138,7 +138,9 @@ context_save_config (const struct GNUNET_CHAT_Context *context) | |||
138 | char* filename; | 138 | char* filename; |
139 | util_get_filename(directory, "chats", hash, &filename); | 139 | util_get_filename(directory, "chats", hash, &filename); |
140 | 140 | ||
141 | GNUNET_CONFIGURATION_write(config, filename); | 141 | if (GNUNET_OK == GNUNET_DISK_directory_create_for_file(filename)) |
142 | GNUNET_CONFIGURATION_write(config, filename); | ||
143 | |||
142 | GNUNET_CONFIGURATION_destroy(config); | 144 | GNUNET_CONFIGURATION_destroy(config); |
143 | 145 | ||
144 | GNUNET_free(filename); | 146 | GNUNET_free(filename); |