Commit 4a0cb8f3 authored by Philip Withnall's avatar Philip Withnall

xdgmime: Don’t set an out argument if it’s NULL

Signed-off-by: Philip Withnall's avatarPhilip Withnall <withnall@endlessm.com>

Fixes: #1729
parent d586ab4c
......@@ -531,7 +531,8 @@ xdg_mime_get_mime_type_for_data (const void *data,
if (len == 0)
{
*result_prio = 100;
if (result_prio != NULL)
*result_prio = 100;
return XDG_MIME_TYPE_EMPTY;
}
......
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