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
9e85c2f7
Commit
9e85c2f7
authored
Oct 31, 2013
by
Moritz Lipp
Browse files
Reduce the scope of val_list
parent
7b8f5d17
Changes
1
Hide whitespace changes
Inline
Side-by-side
database-plain.c
View file @
9e85c2f7
...
...
@@ -394,14 +394,13 @@ plain_load_bookmarks(zathura_database_t* db, const char* file)
return
NULL
;
}
char
**
val_list
=
NULL
;
gsize
num_vals
=
0
;
for
(
gsize
i
=
0
;
i
<
num_keys
;
i
++
)
{
zathura_bookmark_t
*
bookmark
=
g_malloc0
(
sizeof
(
zathura_bookmark_t
));
bookmark
->
id
=
g_strdup
(
keys
[
i
]);
val_list
=
g_key_file_get_string_list
(
priv
->
bookmarks
,
name
,
keys
[
i
],
&
num_vals
,
NULL
);
bookmark
->
id
=
g_strdup
(
keys
[
i
]);
char
**
val_list
=
g_key_file_get_string_list
(
priv
->
bookmarks
,
name
,
keys
[
i
],
&
num_vals
,
NULL
);
bookmark
->
page
=
atoi
(
val_list
[
0
]);
...
...
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