mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-24 10:57:53 +02: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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user