Skip to content
Snippets Groups Projects
Commit cb63e0e1 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#3854] Fix segfaults on g_strdup mallocation failure

parent 652bbd1e
No related branches found
No related tags found
No related merge requests found
......@@ -469,6 +469,16 @@ init (OpenAsyncHandler callback UNUSED)
// absuri = g_strdup (e_source_group_peek_base_uri (group));
reluri = g_strdup (e_source_peek_relative_uri (default_source));
if (!absuri) {
absuri = g_malloc (1);
*absuri = 0;
}
if (!reluri) {
reluri = g_malloc (1);
*reluri = 0;
}
// Do not overwrite current_name for default
// current_name = g_strdup (e_source_peek_name (default_source));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment