diff options
| -rw-r--r-- | common/userpref.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/userpref.c b/common/userpref.c index 760eb58..23fe583 100644 --- a/common/userpref.c +++ b/common/userpref.c | |||
| @@ -202,9 +202,9 @@ static const char *userpref_get_config_dir() | |||
| 202 | #endif | 202 | #endif |
| 203 | 203 | ||
| 204 | if (use_dot_config) | 204 | if (use_dot_config) |
| 205 | __config_dir = string_concat(base_config_dir, DIR_SEP_S, ".config", DIR_SEP_S, LIBIMOBILEDEVICE_CONF_DIR); | 205 | __config_dir = string_concat(base_config_dir, DIR_SEP_S, ".config", DIR_SEP_S, LIBIMOBILEDEVICE_CONF_DIR, NULL); |
| 206 | else | 206 | else |
| 207 | __config_dir = string_concat(base_config_dir, DIR_SEP_S, LIBIMOBILEDEVICE_CONF_DIR); | 207 | __config_dir = string_concat(base_config_dir, DIR_SEP_S, LIBIMOBILEDEVICE_CONF_DIR, NULL); |
| 208 | 208 | ||
| 209 | if (__config_dir) { | 209 | if (__config_dir) { |
| 210 | int i = strlen(__config_dir)-1; | 210 | int i = strlen(__config_dir)-1; |
