[tepl] pango: add missing g_return
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tepl] pango: add missing g_return
- Date: Thu, 29 Oct 2020 21:16:52 +0000 (UTC)
commit be6886da100939299309d8ab7d5300f314c76038
Author: Sébastien Wilmet <swilmet gnome org>
Date: Thu Oct 29 22:15:32 2020 +0100
pango: add missing g_return
tepl/tepl-pango.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/tepl/tepl-pango.c b/tepl/tepl-pango.c
index 54e3ca8..7ed0009 100644
--- a/tepl/tepl-pango.c
+++ b/tepl/tepl-pango.c
@@ -92,6 +92,8 @@ tepl_pango_font_description_to_css (const PangoFontDescription *desc)
GString *s;
PangoFontMask set;
+ g_return_val_if_fail (desc != NULL, NULL);
+
s = g_string_new ("");
set = pango_font_description_get_set_fields (desc);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]