[gtk+] GtkShaderBuilder Fix copy/paste error in precondition
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkShaderBuilder Fix copy/paste error in precondition
- Date: Fri, 17 Mar 2017 17:52:59 +0000 (UTC)
commit 242368bdf6244bb3d636bec384233dbb33cba5d9
Author: Timm Bäder <mail baedert org>
Date: Thu Mar 16 19:16:24 2017 +0100
GtkShaderBuilder Fix copy/paste error in precondition
gtk_shader_builder_add_define should check both define_name and
define_value for not-NULL and not-empty, but the second precondition
check checks define_name again for not-empty-ness.
gsk/gskshaderbuilder.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gsk/gskshaderbuilder.c b/gsk/gskshaderbuilder.c
index 65c779a..7085c41 100644
--- a/gsk/gskshaderbuilder.c
+++ b/gsk/gskshaderbuilder.c
@@ -147,7 +147,7 @@ gsk_shader_builder_add_define (GskShaderBuilder *builder,
{
g_return_if_fail (GSK_IS_SHADER_BUILDER (builder));
g_return_if_fail (define_name != NULL && *define_name != '\0');
- g_return_if_fail (define_value != NULL && *define_name != '\0');
+ g_return_if_fail (define_value != NULL && *define_value != '\0');
g_ptr_array_add (builder->defines, g_strdup (define_name));
g_ptr_array_add (builder->defines, g_strdup (define_value));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]