[gnome-builder] html: use return_val_if_fail
- From: Yosef Or Boczko <yoseforb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] html: use return_val_if_fail
- Date: Thu, 11 Dec 2014 10:51:35 +0000 (UTC)
commit 5bd96df1adea9338c19591de43b796260bdb8dbf
Author: Yosef Or Boczko <yoseforb src gnome org>
Date: Thu Dec 11 12:51:21 2014 +0200
html: use return_val_if_fail
src/html/gb-html-document.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/html/gb-html-document.c b/src/html/gb-html-document.c
index 9a560af..ee972a5 100644
--- a/src/html/gb-html-document.c
+++ b/src/html/gb-html-document.c
@@ -326,8 +326,8 @@ gb_html_markdown_transform (GbHtmlDocument *document,
GsMarkdown *md;
gchar *str;
- g_return_if_fail (GB_IS_HTML_DOCUMENT (document));
- g_return_if_fail (content);
+ g_return_val_if_fail (GB_IS_HTML_DOCUMENT (document), NULL);
+ g_return_val_if_fail (content, NULL);
md = gs_markdown_new (GS_MARKDOWN_OUTPUT_HTML);
gs_markdown_set_autolinkify (md, TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]