Commit b9842316 authored by Avinash Sonawane's avatar Avinash Sonawane

Make sure that argument passed to strncmp is non-NULL

parent f883ab55
Pipeline #1420 passed with stages
in 1 minute and 16 seconds
......@@ -763,7 +763,7 @@ cb_rstto_read_file ( gpointer user_data )
/* Add file to the list */
content_type = g_file_info_get_content_type (file_info);
if (strncmp (content_type, "image/", 6) == 0)
if (content_type && (strncmp (content_type, "image/", 6) == 0))
{
filename = g_file_info_get_name (file_info);
child_file = g_file_get_child (loader->dir, filename);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment