mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-01 07:36:00 +01:00
Resolve possible null pointer dereference
This commit is contained in:
parent
c42a72f996
commit
33e37b12e4
1 changed files with 4 additions and 2 deletions
|
@ -334,8 +334,10 @@ prepare_document_open_from_stdin(zathura_t* zathura)
|
||||||
gint handle = g_file_open_tmp("zathura.stdin.XXXXXX", &file, &error);
|
gint handle = g_file_open_tmp("zathura.stdin.XXXXXX", &file, &error);
|
||||||
if (handle == -1)
|
if (handle == -1)
|
||||||
{
|
{
|
||||||
girara_error("Can not create temporary file: %s", error->message);
|
if (error != NULL) {
|
||||||
g_error_free(error);
|
girara_error("Can not create temporary file: %s", error->message);
|
||||||
|
g_error_free(error);
|
||||||
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue