Fix setting directories

This commit is contained in:
twinaphex 2017-09-29 05:23:33 +02:00
parent 9fc063cd43
commit 15bb8e2ebe

View File

@ -48,7 +48,10 @@ static void sanitize_to_string(char *s, const char *label, size_t len)
static int fill_title(char *s, const char *title, const char *path, size_t len)
{
fill_pathname_join_delim(s, title, path, ' ', len);
if ( (path && !string_is_empty(path))
&&
(title && !string_is_empty(title)))
fill_pathname_join_delim(s, title, path, ' ', len);
return 0;
}