Skip to content
Browse files

caja-desktop-directory: stop segfaults in directory_ready_callback

Prevent segfault on g_list_find in directory_ready_callback by catching the NULL case
  • Loading branch information...
lukefromdc committed Jul 15, 2018
1 parent a2fa06f commit 5b20286752e0e923b1ce6298cdcf21e62849ad7e
Showing with 4 additions and 0 deletions.
  1. +4 −0 libcaja-private/caja-desktop-directory.c
@@ -162,6 +162,10 @@ directory_ready_callback (CajaDirectory *directory,
g_assert (callback_data != NULL);

merged_callback = callback_data;
/*Prevent segfaults on the assert with GTK 3.23*/
if (merged_callback->non_ready_directories == NULL)

g_assert (g_list_find (merged_callback->non_ready_directories, directory) != NULL);

/* Update based on this call. */

0 comments on commit 5b20286

Please sign in to comment.
You can’t perform that action at this time.