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
80582c90
Commit
80582c90
authored
Oct 07, 2015
by
Sebastian Ramacher
Browse files
Check return value
parent
08b341d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
zathura/dbus-interface.c
View file @
80582c90
...
...
@@ -441,6 +441,13 @@ handle_method_call(GDBusConnection* UNUSED(connection),
}
girara_list_t
**
all_rectangles
=
g_try_malloc0
(
number_of_pages
*
sizeof
(
girara_list_t
*
));
if
(
all_rectangles
==
NULL
)
{
girara_list_free
(
rectangles
);
GVariant
*
result
=
g_variant_new
(
"(b)"
,
false
);
g_dbus_method_invocation_return_value
(
invocation
,
result
);
return
;
}
for
(
unsigned
int
p
=
0
;
p
!=
number_of_pages
;
++
p
)
{
if
(
p
==
page
)
{
all_rectangles
[
p
]
=
rectangles
;
...
...
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