From e7d3a38f48a1b6faad8dc1a10bbbdc8054c11505 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 7 Aug 2002 22:15:43 +0000 Subject: [PATCH] Use g_return_val_if_fail, no g_return_if_fail. * glib/gmarkup.c (g_markup_parse_context_get_element): Use g_return_val_if_fail, no g_return_if_fail. --- ChangeLog | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-12 | 5 +++++ ChangeLog.pre-2-2 | 5 +++++ ChangeLog.pre-2-4 | 5 +++++ ChangeLog.pre-2-6 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ glib/gmarkup.c | 2 +- 8 files changed, 36 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a1cc266bd..13820cf59 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-08-07 Matthias Clasen + + * glib/gmarkup.c (g_markup_parse_context_get_element): + Use g_return_val_if_fail, no g_return_if_fail. + 2002-08-06 Sebastian Wilhelmi * glib/gthread.c: Set the normal PID surrogate priority according diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index a1cc266bd..13820cf59 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2002-08-07 Matthias Clasen + + * glib/gmarkup.c (g_markup_parse_context_get_element): + Use g_return_val_if_fail, no g_return_if_fail. + 2002-08-06 Sebastian Wilhelmi * glib/gthread.c: Set the normal PID surrogate priority according diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index a1cc266bd..13820cf59 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,8 @@ +2002-08-07 Matthias Clasen + + * glib/gmarkup.c (g_markup_parse_context_get_element): + Use g_return_val_if_fail, no g_return_if_fail. + 2002-08-06 Sebastian Wilhelmi * glib/gthread.c: Set the normal PID surrogate priority according diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index a1cc266bd..13820cf59 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,8 @@ +2002-08-07 Matthias Clasen + + * glib/gmarkup.c (g_markup_parse_context_get_element): + Use g_return_val_if_fail, no g_return_if_fail. + 2002-08-06 Sebastian Wilhelmi * glib/gthread.c: Set the normal PID surrogate priority according diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index a1cc266bd..13820cf59 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +2002-08-07 Matthias Clasen + + * glib/gmarkup.c (g_markup_parse_context_get_element): + Use g_return_val_if_fail, no g_return_if_fail. + 2002-08-06 Sebastian Wilhelmi * glib/gthread.c: Set the normal PID surrogate priority according diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index a1cc266bd..13820cf59 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +2002-08-07 Matthias Clasen + + * glib/gmarkup.c (g_markup_parse_context_get_element): + Use g_return_val_if_fail, no g_return_if_fail. + 2002-08-06 Sebastian Wilhelmi * glib/gthread.c: Set the normal PID surrogate priority according diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index a1cc266bd..13820cf59 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +2002-08-07 Matthias Clasen + + * glib/gmarkup.c (g_markup_parse_context_get_element): + Use g_return_val_if_fail, no g_return_if_fail. + 2002-08-06 Sebastian Wilhelmi * glib/gthread.c: Set the normal PID surrogate priority according diff --git a/glib/gmarkup.c b/glib/gmarkup.c index f0ff3d457..52707f53d 100644 --- a/glib/gmarkup.c +++ b/glib/gmarkup.c @@ -1715,7 +1715,7 @@ g_markup_parse_context_end_parse (GMarkupParseContext *context, G_CONST_RETURN gchar * g_markup_parse_context_get_element (GMarkupParseContext *context) { - g_return_if_fail (context != NULL); + g_return_val_if_fail (context != NULL, NULL); if (context->tag_stack == NULL) return NULL;