Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Librem5
lurch
Commits
3d0cecb1
Commit
3d0cecb1
authored
May 14, 2017
by
Richard Bayerle
Browse files
Fixed not initializing a pointer to NULL.
Also renamed it for clarity.
parent
15df7636
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lurch.c
View file @
3d0cecb1
...
...
@@ -1002,7 +1002,7 @@ static int lurch_devicelist_process(char * uname, omemo_devicelist * dl_in_p, Ja
uint32_t
curr_id
=
0
;
char
*
bundle_node_name
=
(
void
*
)
0
;
char
*
temp
;
char
*
debug_str
=
(
void
*
)
0
;
from
=
omemo_devicelist_get_owner
(
dl_in_p
);
db_fn_omemo
=
lurch_uname_get_db_fn
(
uname
,
LURCH_DB_NAME_OMEMO
);
...
...
@@ -1015,8 +1015,8 @@ static int lurch_devicelist_process(char * uname, omemo_devicelist * dl_in_p, Ja
goto
cleanup
;
}
omemo_devicelist_export
(
dl_db_p
,
&
temp
);
purple_debug_info
(
"lurch"
,
"%s: %s
\n
%s
\n
"
,
__func__
,
"cached devicelist is"
,
temp
);
omemo_devicelist_export
(
dl_db_p
,
&
debug_str
);
purple_debug_info
(
"lurch"
,
"%s: %s
\n
%s
\n
"
,
__func__
,
"cached devicelist is"
,
debug_str
);
ret_val
=
omemo_devicelist_diff
(
dl_in_p
,
dl_db_p
,
&
add_l_p
,
&
del_l_p
);
if
(
ret_val
)
{
...
...
@@ -1062,7 +1062,7 @@ cleanup:
g_list_free_full
(
add_l_p
,
free
);
g_list_free_full
(
del_l_p
,
free
);
free
(
bundle_node_name
);
free
(
temp
);
free
(
debug_str
);
return
ret_val
;
}
...
...
Write
Preview
Markdown
is supported
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