mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 15:36:17 +01:00
xdgmime: Don’t set an out argument if it’s NULL
Signed-off-by: Philip Withnall <withnall@endlessm.com> Fixes: #1729
This commit is contained in:
parent
d586ab4c73
commit
4a0cb8f3a1
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user