Commit aa71c966 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Remove unnecessary cast

Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
parent 1690a25f
......@@ -79,13 +79,13 @@ guess_type_magic(const char* path) {
}
/* get the mime type */
mime_type = (char*) magic_file(magic, path);
if (mime_type == NULL) {
const char* cmime_type = magic_file(magic, path);
if (cmime_type == NULL) {
goto cleanup;
}
/* dup so we own the memory */
mime_type = g_strdup(mime_type);
mime_type = g_strdup(cmime_type);
cleanup:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment