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
2a358252
Commit
2a358252
authored
Oct 16, 2011
by
Sebastian Ramacher
Browse files
fix 'path may be used unitialized'
parent
de52bae4
Changes
1
Hide whitespace changes
Inline
Side-by-side
database-sqlite.c
View file @
2a358252
...
...
@@ -17,12 +17,12 @@ zathura_database_t*
zathura_db_init
(
const
char
*
dir
)
{
if
(
dir
==
NULL
)
{
goto
error_ret
;
return
NULL
;
}
char
*
path
=
g_build_filename
(
dir
,
DATABASE
,
NULL
);
if
(
path
==
NULL
)
{
goto
error_ret
;
return
NULL
;
}
zathura_database_t
*
db
=
g_malloc0
(
sizeof
(
zathura_database_t
));
...
...
@@ -65,9 +65,6 @@ zathura_db_init(const char* dir)
error_free:
zathura_db_free
(
db
);
error_ret:
g_free
(
path
);
return
NULL
;
...
...
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