Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pwmt
zathura
Commits
d3612f3c
Commit
d3612f3c
authored
Apr 29, 2016
by
Sebastian Ramacher
Browse files
Remove useless g_strdup
Signed-off-by:
Sebastian Ramacher
<
sebastian+dev@ramacher.at
>
parent
25b27624
Changes
1
Hide whitespace changes
Inline
Side-by-side
zathura/completion.c
View file @
d3612f3c
...
...
@@ -175,12 +175,10 @@ list_files_for_cc(zathura_t* zathura, const char* input, bool check_file_ext, in
}
/* get current path */
char
*
tmp
=
g_strdup
(
path
);
current_path
=
is_dir
?
g_strdup
(
tmp
)
:
g_strdup
(
dirname
(
tmp
));
g_free
(
tmp
);
current_path
=
is_dir
?
g_strdup
(
path
)
:
g_path_get_dirname
(
path
);
/* get current file */
gchar
*
current_file
=
is_dir
?
""
:
basename
(
path
);
gchar
*
current_file
=
is_dir
?
""
:
basename
(
path
);
const
size_t
current_file_length
=
strlen
(
current_file
);
/* read directory */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment