From 4a0cb8f3a18b566f3644819e2ff69e07db6b5705 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Tue, 19 Mar 2019 11:16:39 +0000 Subject: [PATCH] =?UTF-8?q?xdgmime:=20Don=E2=80=99t=20set=20an=20out=20arg?= =?UTF-8?q?ument=20if=20it=E2=80=99s=20NULL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Philip Withnall Fixes: #1729 --- gio/xdgmime/xdgmime.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gio/xdgmime/xdgmime.c b/gio/xdgmime/xdgmime.c index 2446d3813..9bb93f791 100644 --- a/gio/xdgmime/xdgmime.c +++ b/gio/xdgmime/xdgmime.c @@ -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; }