mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-13 08:33:48 +01:00
CS
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
c7236aa8da
commit
19429574f4
@ -166,7 +166,7 @@ list_files_for_cc(zathura_t* zathura, const char* input, bool check_file_ext, in
|
|||||||
|
|
||||||
/* Append a slash if the given argument is a directory */
|
/* Append a slash if the given argument is a directory */
|
||||||
bool is_dir = (path[strlen(path) - 1] == '/') ? true : false;
|
bool is_dir = (path[strlen(path) - 1] == '/') ? true : false;
|
||||||
if ((g_file_test(path, G_FILE_TEST_IS_DIR) == TRUE) && !is_dir) {
|
if ((g_file_test(path, G_FILE_TEST_IS_DIR) == TRUE) && is_dir == false) {
|
||||||
char* tmp_path = g_strdup_printf("%s/", path);
|
char* tmp_path = g_strdup_printf("%s/", path);
|
||||||
g_free(path);
|
g_free(path);
|
||||||
path = tmp_path;
|
path = tmp_path;
|
||||||
|
Loading…
Reference in New Issue
Block a user