mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 05:56:01 +01:00
Simplify
This commit is contained in:
parent
e8716d041c
commit
e4b21a0453
1 changed files with 2 additions and 3 deletions
|
@ -1,7 +1,6 @@
|
||||||
/* SPDX-License-Identifier: Zlib */
|
/* SPDX-License-Identifier: Zlib */
|
||||||
|
|
||||||
#include "content-type.h"
|
#include "content-type.h"
|
||||||
#include "macros.h"
|
|
||||||
|
|
||||||
#include <girara/utils.h>
|
#include <girara/utils.h>
|
||||||
#ifdef WITH_MAGIC
|
#ifdef WITH_MAGIC
|
||||||
|
@ -138,8 +137,8 @@ guess_type_file(const char* path)
|
||||||
G_SPAWN_SEARCH_PATH | G_SPAWN_STDERR_TO_DEV_NULL,
|
G_SPAWN_SEARCH_PATH | G_SPAWN_STDERR_TO_DEV_NULL,
|
||||||
NULL, NULL, &out, NULL, &ret, &error);
|
NULL, NULL, &out, NULL, &ret, &error);
|
||||||
g_free(argv[3]);
|
g_free(argv[3]);
|
||||||
if (r == false || error != NULL) {
|
if (r == false) {
|
||||||
girara_warning("failed to execute command: %s", error ? error->message : "unknown");
|
girara_warning("failed to execute command: %s", error->message);
|
||||||
g_error_free(error);
|
g_error_free(error);
|
||||||
g_free(out);
|
g_free(out);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in a new issue