summaryrefslogtreecommitdiff
path: root/dev-libs/totem-pl-parser/files/3.26.6-c99.patch
blob: a991b8ae41c0900047b9f7b8f23f79e8788ff3c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
https://gitlab.gnome.org/GNOME/totem-pl-parser/-/merge_requests/53

From e718dd1fe2476e2a68da4b632f268f404ea951f2 Mon Sep 17 00:00:00 2001
From: Florian Weimer <fweimer@redhat.com>
Date: Wed, 3 Jan 2024 13:24:31 +0100
Subject: [PATCH] Return FALSE instead of NULL, to match the gboolean return
 type

Fixes a C type error and compilation error with GCC 14 and Clang.
--- a/plparse/totem-pl-parser.c
+++ b/plparse/totem-pl-parser.c
@@ -1338,7 +1338,7 @@ totem_pl_parser_save_finish (TotemPlParser   *parser,
 			     GAsyncResult    *async_result,
 			     GError         **error)
 {
-	g_return_val_if_fail (g_task_is_valid (async_result, parser), NULL);
+	g_return_val_if_fail (g_task_is_valid (async_result, parser), FALSE);
 
 	return g_task_propagate_boolean (G_TASK (async_result), error);
 }
-- 
GitLab